File: | objdir/intl/conftest.c |
Warning: | line 48, column 3 Value stored to 'pcpcc' is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* confdefs.h */ |
2 | #define PACKAGE_NAME"" "" |
3 | #define PACKAGE_TARNAME"" "" |
4 | #define PACKAGE_VERSION"" "" |
5 | #define PACKAGE_STRING"" "" |
6 | #define PACKAGE_BUGREPORT"" "" |
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 | /* end confdefs.h. */ |
24 | |
25 | int |
26 | main () |
27 | { |
28 | |
29 | #ifndef __cplusplus |
30 | /* Ultrix mips cc rejects this sort of thing. */ |
31 | typedef int charset[2]; |
32 | const charset cs = { 0, 0 }; |
33 | /* SunOS 4.1.1 cc rejects this. */ |
34 | char const *const *pcpcc; |
35 | char **ppc; |
36 | /* NEC SVR4.0.2 mips cc rejects this. */ |
37 | struct point {int x, y;}; |
38 | static struct point const zero = {0,0}; |
39 | /* AIX XL C 1.02.0.0 rejects this. |
40 | It does not let you subtract one const X* pointer from another in |
41 | an arm of an if-expression whose if-part is not a constant |
42 | expression */ |
43 | const char *g = "string"; |
44 | pcpcc = &g + (g ? g-g : 0); |
45 | /* HPUX 7.0 cc rejects these. */ |
46 | ++pcpcc; |
47 | ppc = (char**) pcpcc; |
48 | pcpcc = (char const *const *) ppc; |
Value stored to 'pcpcc' is never read | |
49 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
50 | char tx; |
51 | char *t = &tx; |
52 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
53 | |
54 | *t++ = 0; |
55 | if (s) return 0; |
56 | } |
57 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
58 | int x[] = {25, 17}; |
59 | const int *foo = &x[0]; |
60 | ++foo; |
61 | } |
62 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
63 | typedef const int *iptr; |
64 | iptr p = 0; |
65 | ++p; |
66 | } |
67 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
68 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
69 | struct s { int j; const int *ap[3]; } bx; |
70 | struct s *b = &bx; b->j = 5; |
71 | } |
72 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
73 | const int foo = 10; |
74 | if (!foo) return 0; |
75 | } |
76 | return !cs[0] && !zero.x; |
77 | #endif |
78 | |
79 | ; |
80 | return 0; |
81 | } |