Bug Summary

File:dmake/conftest.c
Location:line 58, column 3
Description:Value stored to 'pcpcc' is never read

Annotated Source Code

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