cryptsetup-2.7.1-1.fc40 - defects not occurring in cryptsetup-2.7.1-1.fc40

List of Defects

Error: COMPILER_WARNING (CWE-563): [#def1]
cryptsetup-2.7.1/conftest.cpp: scope_hint: In function 'int main(int, char**)'
cryptsetup-2.7.1/conftest.cpp:162:8: warning[-Wunused-variable]: unused variable 'a1'
#  162 |   auto a1 = 6538;
#      |        ^~

Error: COMPILER_WARNING (CWE-563): [#def2]
cryptsetup-2.7.1/conftest.cpp:169:16: warning[-Wunused-variable]: unused variable 'a4'
#  169 |   decltype(a2) a4 = 34895.034;
#      |                ^~

Error: COMPILER_WARNING (CWE-563): [#def3]
cryptsetup-2.7.1/conftest.cpp:173:9: warning[-Wunused-variable]: unused variable 'sa'
#  173 |   short sa[cxx11test::get_val()] = { 0 };
#      |         ^~

Error: COMPILER_WARNING (CWE-563): [#def4]
cryptsetup-2.7.1/conftest.cpp:177:23: warning[-Wunused-variable]: unused variable 'il'
#  177 |   cxx11test::testinit il = { 4323, 435234.23544 };
#      |                       ^~

Error: COMPILER_WARNING (CWE-563): [#def5]
cryptsetup-2.7.1/conftest.cpp:198:8: warning[-Wunused-variable]: unused variable 'a'
#  198 |   auto a = sum(1);
#      |        ^

Error: CLANG_WARNING: [#def6]
cryptsetup-2.7.1/conftest.cpp:198:8: warning[deadcode.DeadStores]: Value stored to 'a' during its initialization is never read

Error: COMPILER_WARNING (CWE-563): [#def7]
cryptsetup-2.7.1/conftest.cpp:199:8: warning[-Wunused-variable]: unused variable 'b'
#  199 |   auto b = sum(1, 2);
#      |        ^

Error: CLANG_WARNING: [#def8]
cryptsetup-2.7.1/conftest.cpp:199:8: warning[deadcode.DeadStores]: Value stored to 'b' during its initialization is never read

Error: COMPILER_WARNING (CWE-563): [#def9]
cryptsetup-2.7.1/conftest.cpp:200:8: warning[-Wunused-variable]: unused variable 'c'
#  200 |   auto c = sum(1.0, 2.0, 3.0);
#      |        ^

Error: CLANG_WARNING: [#def10]
cryptsetup-2.7.1/conftest.cpp:200:8: warning[deadcode.DeadStores]: Value stored to 'c' during its initialization is never read

Error: COMPILER_WARNING: [#def11]
cryptsetup-2.7.1/conftest.cpp:205:25: warning[-Wvexing-parse]: empty parentheses were disambiguated as a function declaration
#  205 |   cxx11test::delegate d2();
#      |                         ^~
cryptsetup-2.7.1/conftest.cpp:205:25: note: remove parentheses to default-initialize a variable
#  205 |   cxx11test::delegate d2();
#      |                         ^~
#      |                         --
cryptsetup-2.7.1/conftest.cpp:205:25: note: or replace parentheses with braces to value-initialize a variable

Error: COMPILER_WARNING (CWE-563): [#def12]
cryptsetup-2.7.1/conftest.cpp:214:9: warning[-Wunused-variable]: unused variable 'c'
#  214 |   char *c = nullptr;
#      |         ^

Error: COMPILER_WARNING (CWE-563): [#def13]
cryptsetup-2.7.1/conftest.cpp:222:15: warning[-Wunused-variable]: unused variable 'utf8'
#  222 |   char const *utf8 = u8"UTF-8 string \u2500";
#      |               ^~~~

Error: CLANG_WARNING: [#def14]
cryptsetup-2.7.1/conftest.cpp:222:15: warning[deadcode.DeadStores]: Value stored to 'utf8' during its initialization is never read

Error: COMPILER_WARNING (CWE-563): [#def15]
cryptsetup-2.7.1/conftest.cpp:223:19: warning[-Wunused-variable]: unused variable 'utf16'
#  223 |   char16_t const *utf16 = u"UTF-8 string \u2500";
#      |                   ^~~~~

Error: CLANG_WARNING: [#def16]
cryptsetup-2.7.1/conftest.cpp:223:19: warning[deadcode.DeadStores]: Value stored to 'utf16' during its initialization is never read

Error: COMPILER_WARNING (CWE-563): [#def17]
cryptsetup-2.7.1/conftest.cpp:224:19: warning[-Wunused-variable]: unused variable 'utf32'
#  224 |   char32_t const *utf32 = U"UTF-32 string \u2500";
#      |                   ^~~~~

Error: CLANG_WARNING: [#def18]
cryptsetup-2.7.1/conftest.cpp:224:19: warning[deadcode.DeadStores]: Value stored to 'utf32' during its initialization is never read

Scan Properties

analyzer-version-clang18.1.3
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.3
diffbase-analyzer-version-cppcheck2.13.0
diffbase-analyzer-version-gcc14.0.1
diffbase-analyzer-version-gcc-analyzer14.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-220.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namecryptsetup-2.7.1-1.fc40
diffbase-store-results-to/tmp/tmpheaok3s8/cryptsetup-2.7.1-1.fc40.tar.xz
diffbase-time-created2024-04-22 10:43:06
diffbase-time-finished2024-04-22 10:45:31
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpheaok3s8/cryptsetup-2.7.1-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpheaok3s8/cryptsetup-2.7.1-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-220.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namecryptsetup-2.7.1-1.fc40
store-results-to/tmp/tmpheaok3s8/cryptsetup-2.7.1-1.fc40.tar.xz
time-created2024-04-22 10:43:06
time-finished2024-04-22 10:45:31
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpheaok3s8/cryptsetup-2.7.1-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpheaok3s8/cryptsetup-2.7.1-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9