Bug Summary

File:objdir/intl/conftest.c
Warning:line 48, column 3
Value stored to 'pcpcc' is never read

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-suse-linux -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.c -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -analyzer-config-compatibility-mode=true -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fcoverage-compilation-dir=/buildworker/marxinbox-gcc-clang-static-analyzer/objdir/intl -resource-dir /usr/lib64/clang/15.0.7 -internal-isystem /usr/lib64/clang/15.0.7/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir=/buildworker/marxinbox-gcc-clang-static-analyzer/objdir/intl -ferror-limit 19 -fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -analyzer-output=plist-html -analyzer-config silence-checkers=core.NullDereference -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /buildworker/marxinbox-gcc-clang-static-analyzer/objdir/clang-static-analyzer/2023-03-27-141847-20772-1/report-yx395A.plist -x c conftest.c
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
25int
26main ()
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}