Bug Summary

File:root/firefox-clang/nsprpub/lib/ds/plvrsion.c
Warning:line 91, column 5
Value stored to 'dummy' is never read

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-pc-linux-gnu -O2 -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name plvrsion.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 -analyzer-config-compatibility-mode=true -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -relaxed-aliasing -ffp-contract=off -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/root/firefox-clang/obj-x86_64-pc-linux-gnu/config/external/nspr/ds -fcoverage-compilation-dir=/root/firefox-clang/obj-x86_64-pc-linux-gnu/config/external/nspr/ds -resource-dir /usr/lib/llvm-23/lib/clang/23 -include /root/firefox-clang/config/gcc_hidden.h -include /root/firefox-clang/obj-x86_64-pc-linux-gnu/mozilla-config.h -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/system_wrappers -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -D DEBUG=1 -D _NSPR_BUILD_ -I /root/firefox-clang/config/external/nspr/ds -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/config/external/nspr/ds -I /root/firefox-clang/config/external/nspr -I /root/firefox-clang/nsprpub/pr/include -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nspr -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nss -D MOZILLA_CLIENT -internal-isystem /usr/lib/llvm-23/lib/clang/23/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/16/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wno-error=tautological-type-limit-compare -Wno-range-loop-analysis -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wno-psabi -Wno-error=builtin-macro-redefined -Wno-unknown-warning-option -Wno-character-conversion -ferror-limit 19 -fstrict-flex-arrays=1 -stack-protector 2 -fstack-clash-protection -ftrivial-auto-var-init=pattern -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fdiagnostics-absolute-paths -vectorize-loops -vectorize-slp -analyzer-checker optin.performance.Padding -analyzer-output=html -analyzer-config stable-report-filename=true -mllvm -dwarf-linkage-names=Abstract -faddrsig -fdwarf2-cfi-asm -o /tmp/scan-build-2026-09-01-224014-2642839-1 -x c /root/firefox-clang/nsprpub/lib/ds/plvrsion.c
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5#include "prinit.h"
6#include "prvrsion.h"
7
8/************************************************************************/
9/**************************IDENTITY AND VERSIONING***********************/
10/************************************************************************/
11#include "_pl_bld.h"
12#if !defined(_BUILD_TIME0)
13#ifdef HAVE_LONG_LONG
14#define _BUILD_TIME0 0
15#else
16#define _BUILD_TIME0 { 0, 0 }
17#endif
18#endif
19#if !defined(_BUILD_STRING"")
20#define _BUILD_STRING"" ""
21#endif
22#if !defined(_PRODUCTION"")
23#define _PRODUCTION"" ""
24#endif
25#if defined(DEBUG1)
26#define _DEBUG_STRING" (debug)" " (debug)"
27#else
28#define _DEBUG_STRING" (debug)" ""
29#endif
30
31/*
32 * A trick to expand the PR_VMAJOR macro before concatenation.
33 */
34#define CONCAT(x, y)xy x##y
35#define CONCAT2(x, y)xy CONCAT(x, y)xy
36#define VERSION_DESC_NAMEprVersionDescription_libplds4 CONCAT2(prVersionDescription_libplds, PR_VMAJOR)prVersionDescription_libplds4
37
38PRVersionDescription VERSION_DESC_NAMEprVersionDescription_libplds4 = {
39 /* version */ 2, /* this is the only one supported */
40 /* buildTime */ _BUILD_TIME0, /* usecs since midnight 1/1/1970 GMT */
41 /* buildTimeString */ _BUILD_STRING"", /* ditto, but human readable */
42 /* vMajor */ PR_VMAJOR4, /* NSPR's version number */
43 /* vMinor */ PR_VMINOR40, /* and minor version */
44 /* vPatch */ PR_VPATCH0, /* and patch */
45 /* beta */ PR_BETA0, /* beta build boolean */
46#if defined(DEBUG1)
47 /* debug */ PR_TRUE1, /* a debug build */
48#else
49 /* debug */ PR_FALSE0, /* an optomized build */
50#endif
51 /* special */ PR_FALSE0, /* they're all special, but ... */
52 /* filename */ _PRODUCTION"", /* the produced library name */
53 /* description */ "Portable runtime", /* what we are */
54 /* security */ "N/A", /* not applicable here */
55 /* copywrite */
56 "This Source Code Form is subject to the terms of the Mozilla Public "
57 "License, v. 2.0. If a copy of the MPL was not distributed with this file, "
58 "You can obtain one at http://mozilla.org/MPL/2.0/.",
59 /* comment */ "http://www.mozilla.org/MPL/",
60 /* specialString */ ""
61};
62
63#ifdef XP_UNIX1
64
65/*
66 * Version information for the 'ident' and 'what commands
67 *
68 * NOTE: the first component of the concatenated rcsid string
69 * must not end in a '$' to prevent rcs keyword substitution.
70 */
71static char rcsid[] =
72 "$Header: NSPR " PR_VERSION"4.40" _DEBUG_STRING" (debug)" " " _BUILD_STRING"" " $";
73static char sccsid[] = "@(#)NSPR " PR_VERSION"4.40" _DEBUG_STRING" (debug)" " " _BUILD_STRING"";
74
75#endif /* XP_UNIX */
76
77#ifdef _PR_HAS_PRAGMA_DIAGNOSTIC
78#pragma GCC diagnostic push
79#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
80#endif
81PR_IMPLEMENT(const PRVersionDescription*)__attribute__((visibility("default"))) const PRVersionDescription
*
82libVersionPoint()
83{
84#ifdef XP_UNIX1
85 /*
86 * Add dummy references to rcsid and sccsid to prevent them
87 * from being optimized away as unused variables.
88 */
89 const char* dummy;
90
91 dummy = rcsid;
Value stored to 'dummy' is never read
92 dummy = sccsid;
93#endif
94 return &VERSION_DESC_NAMEprVersionDescription_libplds4;
95} /* versionEntryPointType */
96#ifdef _PR_HAS_PRAGMA_DIAGNOSTIC
97#pragma GCC diagnostic pop
98#endif
99
100/* plvrsion.c */