Bug Summary

File:objdir/build-x86_64-pc-linux-gnu/libcpp/conftest.c
Warning:line 83, column 7
Value stored to 'cs' during its initialization is never read

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -disable-llvm-verifier -discard-value-names -main-file-name conftest.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -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 static -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /usr/lib64/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-clang-static-analyzer/objdir/build-x86_64-pc-linux-gnu/libcpp -ferror-limit 19 -fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -analyzer-output=plist-html -analyzer-config silence-checkers=core.NullDereference -faddrsig -o /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-clang-static-analyzer/objdir/clang-static-analyzer/2021-01-16-135054-17580-1/report-cSyjk2.plist -x c conftest.c
1/* confdefs.h */
2#define PACKAGE_NAME"cpplib" "cpplib"
3#define PACKAGE_TARNAME"cpplib" "cpplib"
4#define PACKAGE_VERSION" " " "
5#define PACKAGE_STRING"cpplib " "cpplib "
6#define PACKAGE_BUGREPORT"gcc-bugs@gcc.gnu.org" "gcc-bugs@gcc.gnu.org"
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#define TIME_WITH_SYS_TIME1 1
24#define STRING_WITH_STRINGS1 1
25#define HAVE_LOCALE_H1 1
26#define HAVE_FCNTL_H1 1
27#define HAVE_LIMITS_H1 1
28#define HAVE_STDDEF_H1 1
29#define HAVE_STDLIB_H1 1
30#define HAVE_STRINGS_H1 1
31#define HAVE_STRING_H1 1
32#define HAVE_SYS_FILE_H1 1
33#define HAVE_UNISTD_H1 1
34#define HAVE_OBSTACK1 1
35#define HAVE_UINTPTR_T1 1
36#define SIZEOF_INT4 4
37#define SIZEOF_LONG8 8
38#define HAVE_CLEARERR_UNLOCKED1 1
39#define HAVE_FEOF_UNLOCKED1 1
40#define HAVE_FERROR_UNLOCKED1 1
41#define HAVE_FFLUSH_UNLOCKED1 1
42#define HAVE_FGETC_UNLOCKED1 1
43#define HAVE_FGETS_UNLOCKED1 1
44#define HAVE_FILENO_UNLOCKED1 1
45#define HAVE_FPUTC_UNLOCKED1 1
46#define HAVE_FPUTS_UNLOCKED1 1
47#define HAVE_FREAD_UNLOCKED1 1
48#define HAVE_FWRITE_UNLOCKED1 1
49#define HAVE_GETCHAR_UNLOCKED1 1
50#define HAVE_GETC_UNLOCKED1 1
51#define HAVE_PUTCHAR_UNLOCKED1 1
52#define HAVE_PUTC_UNLOCKED1 1
53#define HAVE_DECL_ABORT1 1
54#define HAVE_DECL_ASPRINTF1 1
55#define HAVE_DECL_BASENAME1 1
56#define HAVE_DECL_ERRNO0 0
57#define HAVE_DECL_GETOPT1 1
58#define HAVE_DECL_VASPRINTF1 1
59#define HAVE_DECL_CLEARERR_UNLOCKED1 1
60#define HAVE_DECL_FEOF_UNLOCKED1 1
61#define HAVE_DECL_FERROR_UNLOCKED1 1
62#define HAVE_DECL_FFLUSH_UNLOCKED1 1
63#define HAVE_DECL_FGETC_UNLOCKED1 1
64#define HAVE_DECL_FGETS_UNLOCKED1 1
65#define HAVE_DECL_FILENO_UNLOCKED1 1
66#define HAVE_DECL_FPRINTF_UNLOCKED0 0
67#define HAVE_DECL_FPUTC_UNLOCKED1 1
68#define HAVE_DECL_FPUTS_UNLOCKED1 1
69#define HAVE_DECL_FREAD_UNLOCKED1 1
70#define HAVE_DECL_FWRITE_UNLOCKED1 1
71#define HAVE_DECL_GETCHAR_UNLOCKED1 1
72#define HAVE_DECL_GETC_UNLOCKED1 1
73#define HAVE_DECL_PUTCHAR_UNLOCKED1 1
74#define HAVE_DECL_PUTC_UNLOCKED1 1
75#define HAVE_ALLOCA_H1 1
76#define HAVE_ALLOCA1 1
77#define STDC_HEADERS1 1
78/* end confdefs.h. */
79#include <langinfo.h>
80int
81main ()
82{
83char* cs = nl_langinfo(CODESETCODESET);
Value stored to 'cs' during its initialization is never read
84 ;
85 return 0;
86}