File: | src/usr.sbin/nsd/obj/conftest.c |
Warning: | line 61, column 3 Value stored to 'pcpcc' is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* confdefs.h */ |
2 | #define PACKAGE_NAME"NSD" "NSD" |
3 | #define PACKAGE_TARNAME"nsd" "nsd" |
4 | #define PACKAGE_VERSION"4.3.9" "4.3.9" |
5 | #define PACKAGE_STRING"NSD 4.3.9" "NSD 4.3.9" |
6 | #define PACKAGE_BUGREPORT"nsd-bugs@nlnetlabs.nl" "nsd-bugs@nlnetlabs.nl" |
7 | #define PACKAGE_URL"" "" |
8 | #define CONFCMDLINE"--prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-ssl=/usr --with-user=_nsd --with-chroot=/var/nsd --with-configdir=/var/nsd/etc --with-pidfile= --with-zonesdir=/var/nsd/zones --with-dbfile= --with-zonelistfile=/var/nsd/db/zone.list --with-xfrdir=/var/nsd/run/xfr --with-xfrdfile=/var/nsd/run/xfrd.state --with-libevent=/usr --enable-ratelimit --enable-root-server" "--prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-ssl=/usr --with-user=_nsd --with-chroot=/var/nsd --with-configdir=/var/nsd/etc --with-pidfile= --with-zonesdir=/var/nsd/zones --with-dbfile= --with-zonelistfile=/var/nsd/db/zone.list --with-xfrdir=/var/nsd/run/xfr --with-xfrdfile=/var/nsd/run/xfrd.state --with-libevent=/usr --enable-ratelimit --enable-root-server" |
9 | #define STDC_HEADERS1 1 |
10 | #define HAVE_SYS_TYPES_H1 1 |
11 | #define HAVE_SYS_STAT_H1 1 |
12 | #define HAVE_STDLIB_H1 1 |
13 | #define HAVE_STRING_H1 1 |
14 | #define HAVE_MEMORY_H1 1 |
15 | #define HAVE_STRINGS_H1 1 |
16 | #define HAVE_INTTYPES_H1 1 |
17 | #define HAVE_STDINT_H1 1 |
18 | #define HAVE_UNISTD_H1 1 |
19 | #define __EXTENSIONS__1 1 |
20 | #define _ALL_SOURCE1 1 |
21 | #define _GNU_SOURCE1 1 |
22 | #define _POSIX_PTHREAD_SEMANTICS1 1 |
23 | #define _TANDEM_SOURCE1 1 |
24 | #define CONFIGDIR"/var/nsd/etc" "/var/nsd/etc" |
25 | #define CONFIGFILE"/var/nsd/etc/nsd.conf" "/var/nsd/etc/nsd.conf" |
26 | #define PIDFILE"" "" |
27 | #define DBFILE"" "" |
28 | #define ZONESDIR"/var/nsd/zones" "/var/nsd/zones" |
29 | #define XFRDFILE"/var/nsd/run/xfrd.state" "/var/nsd/run/xfrd.state" |
30 | #define ZONELISTFILE"/var/nsd/db/zone.list" "/var/nsd/db/zone.list" |
31 | #define XFRDIR"/var/nsd/run/xfr" "/var/nsd/run/xfr" |
32 | #define NSD_START_PATH"/usr/sbin/nsd" "/usr/sbin/nsd" |
33 | #define CHROOTDIR"/var/nsd" "/var/nsd" |
34 | #define USER"_nsd" "_nsd" |
35 | #define YYTEXT_POINTER1 1 |
36 | /* end confdefs.h. */ |
37 | |
38 | int |
39 | main () |
40 | { |
41 | |
42 | #ifndef __cplusplus |
43 | /* Ultrix mips cc rejects this sort of thing. */ |
44 | typedef int charset[2]; |
45 | const charset cs = { 0, 0 }; |
46 | /* SunOS 4.1.1 cc rejects this. */ |
47 | char const *const *pcpcc; |
48 | char **ppc; |
49 | /* NEC SVR4.0.2 mips cc rejects this. */ |
50 | struct point {int x, y;}; |
51 | static struct point const zero = {0,0}; |
52 | /* AIX XL C 1.02.0.0 rejects this. |
53 | It does not let you subtract one const X* pointer from another in |
54 | an arm of an if-expression whose if-part is not a constant |
55 | expression */ |
56 | const char *g = "string"; |
57 | pcpcc = &g + (g ? g-g : 0); |
58 | /* HPUX 7.0 cc rejects these. */ |
59 | ++pcpcc; |
60 | ppc = (char**) pcpcc; |
61 | pcpcc = (char const *const *) ppc; |
Value stored to 'pcpcc' is never read | |
62 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
63 | char tx; |
64 | char *t = &tx; |
65 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
66 | |
67 | *t++ = 0; |
68 | if (s) return 0; |
69 | } |
70 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
71 | int x[] = {25, 17}; |
72 | const int *foo = &x[0]; |
73 | ++foo; |
74 | } |
75 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
76 | typedef const int *iptr; |
77 | iptr p = 0; |
78 | ++p; |
79 | } |
80 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
81 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
82 | struct s { int j; const int *ap[3]; } bx; |
83 | struct s *b = &bx; b->j = 5; |
84 | } |
85 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
86 | const int foo = 10; |
87 | if (!foo) return 0; |
88 | } |
89 | return !cs[0] && !zero.x; |
90 | #endif |
91 | |
92 | ; |
93 | return 0; |
94 | } |