| File: | src/gnu/usr.bin/binutils-2.17/obj/gas/conftest.c |
| Warning: | line 45, column 3 Value stored to 'ccp' is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
| 1 | /* confdefs.h. */ |
| 2 | |
| 3 | #define PACKAGE_NAME"" "" |
| 4 | #define PACKAGE_TARNAME"" "" |
| 5 | #define PACKAGE_VERSION"" "" |
| 6 | #define PACKAGE_STRING"" "" |
| 7 | #define PACKAGE_BUGREPORT"" "" |
| 8 | #define PACKAGE"gas" "gas" |
| 9 | #define VERSION"2.17" "2.17" |
| 10 | #define DEFAULT_ARCH"x86_64" "x86_64" |
| 11 | #define EMULATIONS&i386elf, &i386elf, |
| 12 | #define DEFAULT_EMULATION"i386elf" "i386elf" |
| 13 | #define TARGET_ALIAS"amd64-unknown-openbsd7.0" "amd64-unknown-openbsd7.0" |
| 14 | #define TARGET_CANONICAL"x86_64-unknown-openbsd7.0" "x86_64-unknown-openbsd7.0" |
| 15 | #define TARGET_CPU"x86_64" "x86_64" |
| 16 | #define TARGET_VENDOR"unknown" "unknown" |
| 17 | #define TARGET_OS"openbsd7.0" "openbsd7.0" |
| 18 | #define YYTEXT_POINTER1 1 |
| 19 | #define STDC_HEADERS1 1 |
| 20 | /* end confdefs.h. */ |
| 21 | |
| 22 | int |
| 23 | main () |
| 24 | { |
| 25 | /* FIXME: Include the comments suggested by Paul. */ |
| 26 | #ifndef __cplusplus |
| 27 | /* Ultrix mips cc rejects this. */ |
| 28 | typedef int charset[2]; |
| 29 | const charset x; |
| 30 | /* SunOS 4.1.1 cc rejects this. */ |
| 31 | char const *const *ccp; |
| 32 | char **p; |
| 33 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 34 | struct point {int x, y;}; |
| 35 | static struct point const zero = {0,0}; |
| 36 | /* AIX XL C 1.02.0.0 rejects this. |
| 37 | It does not let you subtract one const X* pointer from another in |
| 38 | an arm of an if-expression whose if-part is not a constant |
| 39 | expression */ |
| 40 | const char *g = "string"; |
| 41 | ccp = &g + (g ? g-g : 0); |
| 42 | /* HPUX 7.0 cc rejects these. */ |
| 43 | ++ccp; |
| 44 | p = (char**) ccp; |
| 45 | ccp = (char const *const *) p; |
Value stored to 'ccp' is never read | |
| 46 | { /* SCO 3.2v4 cc rejects this. */ |
| 47 | char *t; |
| 48 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 49 | |
| 50 | *t++ = 0; |
| 51 | } |
| 52 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 53 | int x[] = {25, 17}; |
| 54 | const int *foo = &x[0]; |
| 55 | ++foo; |
| 56 | } |
| 57 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 58 | typedef const int *iptr; |
| 59 | iptr p = 0; |
| 60 | ++p; |
| 61 | } |
| 62 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 63 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 64 | struct s { int j; const int *ap[3]; }; |
| 65 | struct s *b; b->j = 5; |
| 66 | } |
| 67 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 68 | const int foo = 10; |
| 69 | } |
| 70 | #endif |
| 71 | |
| 72 | ; |
| 73 | return 0; |
| 74 | } |