Bug Summary
File: | src/gnu/usr.bin/binutils/obj/bfd/conftest.c |
Warning: | line 26, column 7 Value stored to 'p' during its initialization is never read |
Annotated Source Code
Press '?'
to see keyboard shortcuts
clang -cc1 -cc1 -triple amd64-unknown-openbsd7.0 -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 pic -pic-level 1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +retpoline-indirect-calls -target-feature +retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb -fcoverage-compilation-dir=/usr/src/gnu/usr.bin/binutils/obj/bfd -resource-dir /usr/local/lib/clang/13.0.0 -D PIE_DEFAULT=1 -internal-isystem /usr/local/lib/clang/13.0.0/include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir=/usr/src/gnu/usr.bin/binutils/obj/bfd -ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector -fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -analyzer-output=html -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /home/ben/Projects/vmm/scan-build/2022-01-12-194120-40624-1 -x c conftest.c
1 | #line 3138 "configure" |
2 | #include "confdefs.h" |
3 | |
4 | #ifdef __GNUC__ |
5 | # define alloca __builtin_alloca |
6 | #else |
7 | # ifdef _MSC_VER |
8 | # include <malloc.h> |
9 | # define alloca _alloca |
10 | # else |
11 | # if HAVE_ALLOCA_H |
12 | # include <alloca.h> |
13 | # else |
14 | # ifdef _AIX |
15 | #pragma alloca |
16 | # else |
17 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
18 | char *alloca (); |
19 | # endif |
20 | # endif |
21 | # endif |
22 | # endif |
23 | #endif |
24 | |
25 | int main() { |
26 | char *p = (char *) alloca(1); |
| Value stored to 'p' during its initialization is never read |
27 | ; return 0; } |