assign-warn-3.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 14 行
C
14 行
/* Test diagnostics for bad type conversion when inlining unprototyped functions: should not be errors with -pedantic-errors. *//* Origin: Joseph Myers <jsm@polyomino.org.uk> *//* { dg-do compile } *//* { dg-options "-O3 -std=c99 -pedantic-errors" } *//* This is valid to execute, so maybe shouldn't warn at all. */void f0(x) signed char *x; { }void g0(unsigned char *x) { f0(x); } /* { dg-warning "warning: pointer targets in passing argument 1 of 'f0' differ in signedness" } *//* This is undefined on execution but still must compile. */void f1(x) int *x; { }void g1(unsigned int *x) { f1(x); } /* { dg-warning "warning: pointer targets in passing argument 1 of 'f1' differ in signedness" } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?