Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-563): [#def1]
units-2.21/units.c: scope_hint: In function ‘openfile’
units-2.21/units.c:396:7: warning[-Wunused-variable]: unused variable ‘ret’
#  396 |   int ret;
#      |       ^~~
#  394|   {
#  395|     FILE *fileptr;
#  396|->   int ret;
#  397|   
#  398|     struct stat statbuf;

Scan Properties

analyzer-version-clang17.0.6
analyzer-version-cppcheck2.13.0
analyzer-version-gcc13.2.1
analyzer-version-gcc-analyzer13.2.1
analyzer-version-shellcheck0.9.0
diffbase-analyzer-version-clang17.0.6
diffbase-analyzer-version-cppcheck2.13.0
diffbase-analyzer-version-gcc13.2.1
diffbase-analyzer-version-gcc-analyzer13.2.1
diffbase-analyzer-version-shellcheck0.9.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-135.us-west-2.compute.internal
diffbase-mock-configfedora-39-x86_64
diffbase-project-nameunits-2.22-6.fc39
diffbase-store-results-to/tmp/tmp0sefvitf/units-2.22-6.fc39.tar.xz
diffbase-time-created2024-04-15 18:40:15
diffbase-time-finished2024-04-15 18:41:37
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-39-x86_64' '-t' 'gcc,cppcheck,clang,shellcheck' '-o' '/tmp/tmp0sefvitf/units-2.22-6.fc39.tar.xz' '--gcc-analyze' '/tmp/tmp0sefvitf/units-2.22-6.fc39.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-135.us-west-2.compute.internal
mock-configfedora-39-x86_64
project-nameunits-2.21-5.fc37
store-results-to/tmp/tmpg29xceb4/units-2.21-5.fc37.tar.xz
time-created2024-04-15 18:36:46
time-finished2024-04-15 18:39:49
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-39-x86_64' '-t' 'gcc,cppcheck,clang,shellcheck' '-o' '/tmp/tmpg29xceb4/units-2.21-5.fc37.tar.xz' '--gcc-analyze' '/tmp/tmpg29xceb4/units-2.21-5.fc37.src.rpm'
tool-versioncsmock-3.5.3-1.el9