Bug Summary

File:deps/jemalloc/conftest.c
Warning:line 92, column 61
Value stored to 'y' during its initialization is never read

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -triple x86_64-pc-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 -mrelocation-model static -mthread-model posix -mframe-pointer=none -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /usr/lib/llvm-10/lib/clang/10.0.0 -D _GNU_SOURCE -D _REENTRANT -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-10/lib/clang/10.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-format-zero-length -std=gnu99 -fdebug-compilation-dir /home/netto/Desktop/redis-6.2.1/deps/jemalloc -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -funroll-loops -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -analyzer-output=html -faddrsig -o /tmp/scan-build-2021-03-14-133648-8817-1 -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 JEMALLOC_HAS_RESTRICT1 1
9#define HAVE_CXX141 1
10#define STDC_HEADERS1 1
11#define HAVE_SYS_TYPES_H1 1
12#define HAVE_SYS_STAT_H1 1
13#define HAVE_STDLIB_H1 1
14#define HAVE_STRING_H1 1
15#define HAVE_MEMORY_H1 1
16#define HAVE_STRINGS_H1 1
17#define HAVE_INTTYPES_H1 1
18#define HAVE_STDINT_H1 1
19#define HAVE_UNISTD_H1 1
20#define SIZEOF_VOID_P8 8
21#define LG_SIZEOF_PTR3 3
22#define SIZEOF_INT4 4
23#define LG_SIZEOF_INT2 2
24#define SIZEOF_LONG8 8
25#define LG_SIZEOF_LONG3 3
26#define SIZEOF_LONG_LONG8 8
27#define LG_SIZEOF_LONG_LONG3 3
28#define SIZEOF_INTMAX_T8 8
29#define LG_SIZEOF_INTMAX_T3 3
30#define HAVE_CPU_SPINWAIT1 1
31#define CPU_SPINWAIT__asm__ volatile("pause") __asm__ volatile("pause")
32#define LG_VADDR48 48
33#define LG_VADDR48 48
34#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS
35#define JEMALLOC_HAS_ALLOCA_H1 1
36#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY
37#define JEMALLOC_THREADED_INIT
38#define JEMALLOC_USE_CXX_THROW
39#define HAVE_MALLOC_H1 1
40#define JEMALLOC_USABLE_SIZE_CONST
41#define JEMALLOC_HAVE_ATTR
42#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE
43#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF
44#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF
45#define JEMALLOC_PREFIX"je_" "je_"
46#define JEMALLOC_CPREFIX"JE_" "JE_"
47#define JEMALLOC_OVERRIDE_MEMALIGN
48#define JEMALLOC_OVERRIDE_VALLOC
49#define JEMALLOC_PRIVATE_NAMESPACEje_ je_
50#define JEMALLOC_CONFIG_MALLOC_CONF"" ""
51#define JEMALLOC_STATS
52#define JEMALLOC_MAPS_COALESCE
53#define JEMALLOC_RETAIN
54#define JEMALLOC_DSS
55#define JEMALLOC_FILL
56#define JEMALLOC_CACHE_OBLIVIOUS
57#define JEMALLOC_INTERNAL_UNREACHABLE__builtin_unreachable __builtin_unreachable
58#define JEMALLOC_INTERNAL_FFSLL__builtin_ffsll __builtin_ffsll
59#define JEMALLOC_INTERNAL_FFSL__builtin_ffsl __builtin_ffsl
60#define JEMALLOC_INTERNAL_FFS__builtin_ffs __builtin_ffs
61#define LG_QUANTUM3 3
62#define LG_PAGE12 12
63#define LG_HUGEPAGE21 21
64#define JEMALLOC_HAVE_PTHREAD
65#define HAVE_PTHREAD_H1 1
66#define HAVE_DLFCN_H1 1
67#define JEMALLOC_HAVE_DLSYM
68#define JEMALLOC_HAVE_PTHREAD_ATFORK
69#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP
70#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE1 1
71#define JEMALLOC_HAVE_CLOCK_MONOTONIC1 1
72#define JEMALLOC_USE_SYSCALL
73#define JEMALLOC_HAVE_SECURE_GETENV
74#define JEMALLOC_HAVE_SCHED_GETCPU
75#define JEMALLOC_HAVE_SCHED_SETAFFINITY
76#define JEMALLOC_TLS
77#define JEMALLOC_GCC_ATOMIC_ATOMICS1 1
78#define JEMALLOC_GCC_SYNC_ATOMICS1 1
79#define JEMALLOC_HAVE_MADVISE
80#define JEMALLOC_PURGE_MADVISE_FREE
81#define JEMALLOC_PURGE_MADVISE_DONTNEED
82#define JEMALLOC_MADVISE_DONTDUMP
83#define JEMALLOC_HAVE_MADVISE_HUGE
84/* end confdefs.h. */
85
86int
87main ()
88{
89
90 {
91 unsigned x = 0;
92 int y = __builtin_clz(x);
Value stored to 'y' during its initialization is never read
93 }
94 {
95 unsigned long x = 0;
96 int y = __builtin_clzl(x);
97 }
98
99 ;
100 return 0;
101}