File: | objdir/build-x86_64-pc-linux-gnu/libcpp/conftest.c |
Warning: | line 59, column 3 Value stored to 'pcpcc' is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* confdefs.h */ |
2 | #define PACKAGE_NAME"cpplib" "cpplib" |
3 | #define PACKAGE_TARNAME"cpplib" "cpplib" |
4 | #define PACKAGE_VERSION" " " " |
5 | #define PACKAGE_STRING"cpplib " "cpplib " |
6 | #define PACKAGE_BUGREPORT"gcc-bugs@gcc.gnu.org" "gcc-bugs@gcc.gnu.org" |
7 | #define PACKAGE_URL"" "" |
8 | #define STDC_HEADERS1 1 |
9 | #define HAVE_SYS_TYPES_H1 1 |
10 | #define HAVE_SYS_STAT_H1 1 |
11 | #define HAVE_STDLIB_H1 1 |
12 | #define HAVE_STRING_H1 1 |
13 | #define HAVE_MEMORY_H1 1 |
14 | #define HAVE_STRINGS_H1 1 |
15 | #define HAVE_INTTYPES_H1 1 |
16 | #define HAVE_STDINT_H1 1 |
17 | #define HAVE_UNISTD_H1 1 |
18 | #define __EXTENSIONS__1 1 |
19 | #define _ALL_SOURCE1 1 |
20 | #define _GNU_SOURCE1 1 |
21 | #define _POSIX_PTHREAD_SEMANTICS1 1 |
22 | #define _TANDEM_SOURCE1 1 |
23 | #define TIME_WITH_SYS_TIME1 1 |
24 | #define STRING_WITH_STRINGS1 1 |
25 | #define HAVE_LOCALE_H1 1 |
26 | #define HAVE_FCNTL_H1 1 |
27 | #define HAVE_LIMITS_H1 1 |
28 | #define HAVE_STDDEF_H1 1 |
29 | #define HAVE_STDLIB_H1 1 |
30 | #define HAVE_STRINGS_H1 1 |
31 | #define HAVE_STRING_H1 1 |
32 | #define HAVE_SYS_FILE_H1 1 |
33 | #define HAVE_UNISTD_H1 1 |
34 | /* end confdefs.h. */ |
35 | |
36 | int |
37 | main () |
38 | { |
39 | |
40 | #ifndef __cplusplus |
41 | /* Ultrix mips cc rejects this sort of thing. */ |
42 | typedef int charset[2]; |
43 | const charset cs = { 0, 0 }; |
44 | /* SunOS 4.1.1 cc rejects this. */ |
45 | char const *const *pcpcc; |
46 | char **ppc; |
47 | /* NEC SVR4.0.2 mips cc rejects this. */ |
48 | struct point {int x, y;}; |
49 | static struct point const zero = {0,0}; |
50 | /* AIX XL C 1.02.0.0 rejects this. |
51 | It does not let you subtract one const X* pointer from another in |
52 | an arm of an if-expression whose if-part is not a constant |
53 | expression */ |
54 | const char *g = "string"; |
55 | pcpcc = &g + (g ? g-g : 0); |
56 | /* HPUX 7.0 cc rejects these. */ |
57 | ++pcpcc; |
58 | ppc = (char**) pcpcc; |
59 | pcpcc = (char const *const *) ppc; |
Value stored to 'pcpcc' is never read | |
60 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
61 | char tx; |
62 | char *t = &tx; |
63 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
64 | |
65 | *t++ = 0; |
66 | if (s) return 0; |
67 | } |
68 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
69 | int x[] = {25, 17}; |
70 | const int *foo = &x[0]; |
71 | ++foo; |
72 | } |
73 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
74 | typedef const int *iptr; |
75 | iptr p = 0; |
76 | ++p; |
77 | } |
78 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
79 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
80 | struct s { int j; const int *ap[3]; } bx; |
81 | struct s *b = &bx; b->j = 5; |
82 | } |
83 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
84 | const int foo = 10; |
85 | if (!foo) return 0; |
86 | } |
87 | return !cs[0] && !zero.x; |
88 | #endif |
89 | |
90 | ; |
91 | return 0; |
92 | } |