| File: | src/usr.sbin/nsd/obj/conftest.c |
| Warning: | line 60, 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.8.0" "4.8.0" |
| 5 | #define PACKAGE_STRING"NSD 4.8.0" "NSD 4.8.0" |
| 6 | #define PACKAGE_BUGREPORT"https://github.com/NLnetLabs/nsd/issues or nsd-bugs@nlnetlabs.nl" "https://github.com/NLnetLabs/nsd/issues or 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" "--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" |
| 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 ZONESDIR"/var/nsd/zones" "/var/nsd/zones" |
| 28 | #define XFRDFILE"/var/nsd/run/xfrd.state" "/var/nsd/run/xfrd.state" |
| 29 | #define ZONELISTFILE"/var/nsd/db/zone.list" "/var/nsd/db/zone.list" |
| 30 | #define XFRDIR"/var/nsd/run/xfr" "/var/nsd/run/xfr" |
| 31 | #define NSD_START_PATH"/usr/sbin/nsd" "/usr/sbin/nsd" |
| 32 | #define CHROOTDIR"/var/nsd" "/var/nsd" |
| 33 | #define USER"_nsd" "_nsd" |
| 34 | #define YYTEXT_POINTER1 1 |
| 35 | /* end confdefs.h. */ |
| 36 | |
| 37 | int |
| 38 | main () |
| 39 | { |
| 40 | |
| 41 | #ifndef __cplusplus |
| 42 | /* Ultrix mips cc rejects this sort of thing. */ |
| 43 | typedef int charset[2]; |
| 44 | const charset cs = { 0, 0 }; |
| 45 | /* SunOS 4.1.1 cc rejects this. */ |
| 46 | char const *const *pcpcc; |
| 47 | char **ppc; |
| 48 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 49 | struct point {int x, y;}; |
| 50 | static struct point const zero = {0,0}; |
| 51 | /* AIX XL C 1.02.0.0 rejects this. |
| 52 | It does not let you subtract one const X* pointer from another in |
| 53 | an arm of an if-expression whose if-part is not a constant |
| 54 | expression */ |
| 55 | const char *g = "string"; |
| 56 | pcpcc = &g + (g ? g-g : 0); |
| 57 | /* HPUX 7.0 cc rejects these. */ |
| 58 | ++pcpcc; |
| 59 | ppc = (char**) pcpcc; |
| 60 | pcpcc = (char const *const *) ppc; |
Value stored to 'pcpcc' is never read | |
| 61 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 62 | char tx; |
| 63 | char *t = &tx; |
| 64 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 65 | |
| 66 | *t++ = 0; |
| 67 | if (s) return 0; |
| 68 | } |
| 69 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 70 | int x[] = {25, 17}; |
| 71 | const int *foo = &x[0]; |
| 72 | ++foo; |
| 73 | } |
| 74 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 75 | typedef const int *iptr; |
| 76 | iptr p = 0; |
| 77 | ++p; |
| 78 | } |
| 79 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
| 80 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 81 | struct s { int j; const int *ap[3]; } bx; |
| 82 | struct s *b = &bx; b->j = 5; |
| 83 | } |
| 84 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 85 | const int foo = 10; |
| 86 | if (!foo) return 0; |
| 87 | } |
| 88 | return !cs[0] && !zero.x; |
| 89 | #endif |
| 90 | |
| 91 | ; |
| 92 | return 0; |
| 93 | } |