Bug Summary

File:pr/Linux4.19_x86_64_gcc_glibc_PTH_64_DBG.OBJ/pr/src/../../../pr/src/prvrsion.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 -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name prvrsion.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 -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=/var/lib/jenkins/workspace/nss-scan-build/nspr/Linux4.19_x86_64_gcc_glibc_PTH_64_DBG.OBJ/pr/src -fcoverage-compilation-dir=/var/lib/jenkins/workspace/nss-scan-build/nspr/Linux4.19_x86_64_gcc_glibc_PTH_64_DBG.OBJ/pr/src -resource-dir /usr/lib/llvm-18/lib/clang/18 -U NDEBUG -D DEBUG_jenkins -D PACKAGE_NAME="" -D PACKAGE_TARNAME="" -D PACKAGE_VERSION="" -D PACKAGE_STRING="" -D PACKAGE_BUGREPORT="" -D PACKAGE_URL="" -D DEBUG=1 -D HAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -D HAVE_VISIBILITY_PRAGMA=1 -D XP_UNIX=1 -D _GNU_SOURCE=1 -D HAVE_FCNTL_FILE_LOCKING=1 -D HAVE_POINTER_LOCALTIME_R=1 -D LINUX=1 -D HAVE_DLADDR=1 -D HAVE_GETTID=1 -D HAVE_LCHOWN=1 -D HAVE_SETPRIORITY=1 -D HAVE_STRERROR=1 -D HAVE_SYSCALL=1 -D HAVE_SECURE_GETENV=1 -D _REENTRANT=1 -D FORCE_PR_LOG -D _PR_PTHREADS -U HAVE_CVAR_BUILT_ON_SEM -D _NSPR_BUILD_ -I /var/lib/jenkins/workspace/nss-scan-build/nss/../dist/Linux4.19_x86_64_gcc_glibc_PTH_64_DBG.OBJ/include -I ../../../pr/include -I ../../../pr/include/private -I . -internal-isystem /usr/lib/llvm-18/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -ferror-limit 19 -fvisibility=hidden -fgnuc-version=4.2.1 -fno-inline -analyzer-output=html -analyzer-config stable-report-filename=true -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/scan-build-2024-05-18-082241-28900-1 -x c ../../../pr/src/prvrsion.c
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6#include "prinit.h"
7#include "prvrsion.h"
8
9/************************************************************************/
10/**************************IDENTITY AND VERSIONING***********************/
11/************************************************************************/
12#include "_pr_bld.h"
13#if !defined(_BUILD_TIME1716020631000000LL)
14#ifdef HAVE_LONG_LONG
15#define _BUILD_TIME1716020631000000LL 0
16#else
17#define _BUILD_TIME1716020631000000LL {0, 0}
18#endif
19#endif
20#if !defined(_BUILD_STRING"2024-05-18 08:23:51")
21#define _BUILD_STRING"2024-05-18 08:23:51" ""
22#endif
23#if !defined(_PRODUCTION"libnspr4.so")
24#define _PRODUCTION"libnspr4.so" ""
25#endif
26#if defined(DEBUG1)
27#define _DEBUG_STRING" (debug)" " (debug)"
28#else
29#define _DEBUG_STRING" (debug)" ""
30#endif
31
32/*
33 * A trick to expand the PR_VMAJOR macro before concatenation.
34 */
35#define CONCAT(x, y)xy x ## y
36#define CONCAT2(x, y)xy CONCAT(x, y)xy
37#define VERSION_DESC_NAMEprVersionDescription_libnspr4 CONCAT2(prVersionDescription_libnspr, PR_VMAJOR)prVersionDescription_libnspr4
38
39PRVersionDescription VERSION_DESC_NAMEprVersionDescription_libnspr4 =
40{
41 /* version */ 2, /* this is the only one supported */
42 /* buildTime */ _BUILD_TIME1716020631000000LL, /* usecs since midnight 1/1/1970 GMT */
43 /* buildTimeString */ _BUILD_STRING"2024-05-18 08:23:51", /* ditto, but human readable */
44 /* vMajor */ PR_VMAJOR4, /* NSPR's version number */
45 /* vMinor */ PR_VMINOR36, /* and minor version */
46 /* vPatch */ PR_VPATCH0, /* and patch */
47 /* beta */ PR_BETA1, /* beta build boolean */
48#if defined(DEBUG1)
49 /* debug */ PR_TRUE1, /* a debug build */
50#else
51 /* debug */ PR_FALSE0, /* an optomized build */
52#endif
53 /* special */ PR_FALSE0, /* they're all special, but ... */
54 /* filename */ _PRODUCTION"libnspr4.so", /* the produced library name */
55 /* description */ "Portable runtime", /* what we are */
56 /* security */ "N/A", /* not applicable here */
57 /* copywrite */ "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
58 /* comment */ "License information: http://www.mozilla.org/MPL/",
59 /* specialString */ ""
60};
61
62#ifdef XP_UNIX1
63
64/*
65 * Version information for the 'ident' and 'what commands
66 *
67 * NOTE: the first component of the concatenated rcsid string
68 * must not end in a '$' to prevent rcs keyword substitution.
69 */
70static char rcsid[] = "$Header: NSPR " PR_VERSION"4.36 Beta" _DEBUG_STRING" (debug)"
71 " " _BUILD_STRING"2024-05-18 08:23:51" " $";
72static char sccsid[] = "@(#)NSPR " PR_VERSION"4.36 Beta" _DEBUG_STRING" (debug)"
73 " " _BUILD_STRING"2024-05-18 08:23:51";
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
*
libVersionPoint(void)
82{
83#ifdef XP_UNIX1
84 /*
85 * Add dummy references to rcsid and sccsid to prevent them
86 * from being optimized away as unused variables.
87 */
88 const char *dummy;
89
90 dummy = rcsid;
91 dummy = sccsid;
Value stored to 'dummy' is never read
92#endif
93 return &VERSION_DESC_NAMEprVersionDescription_libnspr4;
94} /* versionEntryPointType */
95#ifdef _PR_HAS_PRAGMA_DIAGNOSTIC
96#pragma GCC diagnostic pop
97#endif
98
99/* prvrsion.c */
100