Bug Summary

File:_build/CMakeFiles/CMakeScratch/TryCompile-Gfmgol/src.c
Warning:line 6, column 10
Value stored to 'fd' during its initialization is never read

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-redhat-linux-gnu -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name src.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 -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/builds/GNOME/evolution-data-server/_build/CMakeFiles/CMakeScratch/TryCompile-Gfmgol -fcoverage-compilation-dir=/builds/GNOME/evolution-data-server/_build/CMakeFiles/CMakeScratch/TryCompile-Gfmgol -resource-dir /usr/bin/../lib/clang/22 -D have_o_largefile_with_largefile64_source -D HAVE_UNISTD_H -internal-isystem /usr/bin/../lib/clang/22/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/gcc/x86_64-redhat-linux/16/../../../../x86_64-redhat-linux/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-deprecated-declarations -Wno-cast-function-type -Wwrite-strings -fconst-strings -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -analyzer-output=html -faddrsig -fdwarf2-cfi-asm -o /builds/GNOME/evolution-data-server/_build/scan-build/2026-08-11-054813-10-1 -x c /builds/GNOME/evolution-data-server/_build/CMakeFiles/CMakeScratch/TryCompile-Gfmgol/src.c
1#define _LARGEFILE64_SOURCE
2 #include <sys/types.h>
3 #include <sys/stat.h>
4 #include <fcntl.h>
5 int main(void) {
6 int fd = open ("__o_largefile", O_CREAT0100 | O_RDWR02 | O_LARGEFILE0, 0644);
Value stored to 'fd' during its initialization is never read
7 return 0;
8 }