| File: | src/gnu/usr.bin/cvs/obj/conftest.c |
| Warning: | line 22, column 1 Value stored to 'ccp' is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
| 1 | #line 2466 "configure" |
| 2 | #include "confdefs.h" |
| 3 | |
| 4 | int main() { |
| 5 | |
| 6 | /* Ultrix mips cc rejects this. */ |
| 7 | typedef int charset[2]; const charset x; |
| 8 | /* SunOS 4.1.1 cc rejects this. */ |
| 9 | char const *const *ccp; |
| 10 | char **p; |
| 11 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 12 | struct point {int x, y;}; |
| 13 | static struct point const zero = {0,0}; |
| 14 | /* AIX XL C 1.02.0.0 rejects this. |
| 15 | It does not let you subtract one const X* pointer from another in an arm |
| 16 | of an if-expression whose if-part is not a constant expression */ |
| 17 | const char *g = "string"; |
| 18 | ccp = &g + (g ? g-g : 0); |
| 19 | /* HPUX 7.0 cc rejects these. */ |
| 20 | ++ccp; |
| 21 | p = (char**) ccp; |
| 22 | ccp = (char const *const *) p; |
Value stored to 'ccp' is never read | |
| 23 | { /* SCO 3.2v4 cc rejects this. */ |
| 24 | char *t; |
| 25 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 26 | |
| 27 | *t++ = 0; |
| 28 | } |
| 29 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 30 | int x[] = {25, 17}; |
| 31 | const int *foo = &x[0]; |
| 32 | ++foo; |
| 33 | } |
| 34 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 35 | typedef const int *iptr; |
| 36 | iptr p = 0; |
| 37 | ++p; |
| 38 | } |
| 39 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 40 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 41 | struct s { int j; const int *ap[3]; }; |
| 42 | struct s *b; b->j = 5; |
| 43 | } |
| 44 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 45 | const int foo = 10; |
| 46 | } |
| 47 | |
| 48 | ; return 0; } |