Bug Summary

File:src/gnu/usr.bin/binutils-2.17/obj/gas/conftest.c
Warning:line 54, 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-2.17/obj/gas -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-2.17/obj/gas -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/* confdefs.h. */
2
3#define PACKAGE_NAME"" ""
4#define PACKAGE_TARNAME"" ""
5#define PACKAGE_VERSION"" ""
6#define PACKAGE_STRING"" ""
7#define PACKAGE_BUGREPORT"" ""
8#define PACKAGE"gas" "gas"
9#define VERSION"2.17" "2.17"
10#define DEFAULT_ARCH"x86_64" "x86_64"
11#define EMULATIONS&i386elf, &i386elf,
12#define DEFAULT_EMULATION"i386elf" "i386elf"
13#define TARGET_ALIAS"amd64-unknown-openbsd7.0" "amd64-unknown-openbsd7.0"
14#define TARGET_CANONICAL"x86_64-unknown-openbsd7.0" "x86_64-unknown-openbsd7.0"
15#define TARGET_CPU"x86_64" "x86_64"
16#define TARGET_VENDOR"unknown" "unknown"
17#define TARGET_OS"openbsd7.0" "openbsd7.0"
18#define YYTEXT_POINTER1 1
19#define STDC_HEADERS1 1
20#define HAVE_SYS_TYPES_H1 1
21#define HAVE_SYS_STAT_H1 1
22#define HAVE_STDLIB_H1 1
23#define HAVE_STRING_H1 1
24#define HAVE_MEMORY_H1 1
25#define HAVE_STRINGS_H1 1
26#define HAVE_INTTYPES_H1 1
27#define HAVE_STDINT_H1 1
28#define HAVE_UNISTD_H1 1
29/* end confdefs.h. */
30#ifdef __GNUC__4
31# define alloca__builtin_alloca __builtin_alloca
32#else
33# ifdef _MSC_VER
34# include <malloc.h>
35# define alloca__builtin_alloca _alloca
36# else
37# if HAVE_ALLOCA_H
38# include <alloca__builtin_alloca.h>
39# else
40# ifdef _AIX
41 #pragma alloca__builtin_alloca
42# else
43# ifndef alloca__builtin_alloca /* predefined by HP cc +Olibcalls */
44char *alloca__builtin_alloca ();
45# endif
46# endif
47# endif
48# endif
49#endif
50
51int
52main ()
53{
54char *p = (char *) alloca__builtin_alloca (1);
Value stored to 'p' during its initialization is never read
55 ;
56 return 0;
57}