Fixed findings

List of Findings

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-clippy1.81.0
analyzer-version-cppcheck2.14.2
analyzer-version-gcc13.3.1
analyzer-version-gcc-analyzer13.3.1
analyzer-version-shellcheck0.9.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.81.0
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc13.3.1
diffbase-analyzer-version-gcc-analyzer13.3.1
diffbase-analyzer-version-shellcheck0.9.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-26.us-west-2.compute.internal
diffbase-mock-configfedora-39-x86_64
diffbase-project-nameunits-2.22-6.fc39
diffbase-store-results-to/tmp/tmpc_q27bhs/units-2.22-6.fc39.tar.xz
diffbase-time-created2024-10-02 13:09:16
diffbase-time-finished2024-10-02 13:10:51
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-39-x86_64' '-t' 'clippy,shellcheck,gcc,unicontrol,cppcheck' '-o' '/tmp/tmpc_q27bhs/units-2.22-6.fc39.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpc_q27bhs/units-2.22-6.fc39.src.rpm'
diffbase-tool-versioncsmock-3.7.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-26.us-west-2.compute.internal
mock-configfedora-39-x86_64
project-nameunits-2.21-5.fc37
store-results-to/tmp/tmpvq9bluph/units-2.21-5.fc37.tar.xz
time-created2024-10-02 13:05:24
time-finished2024-10-02 13:08:49
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-39-x86_64' '-t' 'clippy,shellcheck,gcc,unicontrol,cppcheck' '-o' '/tmp/tmpvq9bluph/units-2.21-5.fc37.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpvq9bluph/units-2.21-5.fc37.src.rpm'
tool-versioncsmock-3.7.0-1.el9