Error: COMPILER_WARNING (CWE-563): [#def1] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/cpu/linuxcpuplugin.cpp: scope_hint: In member function ‘void LinuxCpuPluginPrivate::addSensorsAmd(const sensors_chip_name*)’ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/cpu/linuxcpuplugin.cpp:225:29: warning[-Wunused-but-set-variable]: variable ‘tccd’ set but not used # 225 | sensors_feature const * tccd[8] = {nullptr}; # | ^~~~ # 223| sensors_feature const * tctl = nullptr; # 224| sensors_feature const * tdie = nullptr; # 225|-> sensors_feature const * tccd[8] = {nullptr}; # 226| while (sensors_feature const * feature = sensors_get_features(chipName, &featureNumber)) { # 227| const QByteArray name (feature->name); Error: COMPILER_WARNING (CWE-563): [#def2] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/gpu/LinuxBackend.cpp:19:20: warning[-Wunused-variable]: ‘intelVendor’ defined but not used # 19 | static const char *intelVendor = "0x8086"; # | ^~~~~~~~~~~ # 17| // Vendor ID strings, as used in sysfs # 18| static const char *amdVendor = "0x1002"; # 19|-> static const char *intelVendor = "0x8086"; # 20| static const char *nvidiaVendor = "0x10de"; # 21| Error: COMPILER_WARNING (CWE-457): [#def3] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:58:21: warning[-Wmaybe-uninitialized]: ‘available’ may be used uninitialized # 58 | m_used->setValue(total - available); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:32:37: note: ‘available’ was declared here # 32 | unsigned long long total, free, available, buffer, cache, slab, swapTotal, swapFree; # | ^~~~~~~~~ # 56| } # 57| m_total->setValue(total); # 58|-> m_used->setValue(total - available); # 59| m_free->setValue(available); # 60| m_application->setValue(total - free - cache - buffer - slab); Error: COMPILER_WARNING (CWE-457): [#def4] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp: scope_hint: In member function ‘LinuxMemoryBackend::update()’ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:58:21: warning[-Wmaybe-uninitialized]: ‘total’ may be used uninitialized # 58 | m_used->setValue(total - available); # | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:32:24: note: ‘total’ was declared here # 32 | unsigned long long total, free, available, buffer, cache, slab, swapTotal, swapFree; # | ^~~~~ # 56| } # 57| m_total->setValue(total); # 58|-> m_used->setValue(total - available); # 59| m_free->setValue(available); # 60| m_application->setValue(total - free - cache - buffer - slab); Error: COMPILER_WARNING (CWE-457): [#def5] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:60:35: warning[-Wmaybe-uninitialized]: ‘free’ may be used uninitialized # 60 | m_application->setValue(total - free - cache - buffer - slab); # | ~~~~~~^~~~~~ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:32:31: note: ‘free’ was declared here # 32 | unsigned long long total, free, available, buffer, cache, slab, swapTotal, swapFree; # | ^~~~ # 58| m_used->setValue(total - available); # 59| m_free->setValue(available); # 60|-> m_application->setValue(total - free - cache - buffer - slab); # 61| m_cache->setValue(cache + slab); # 62| m_buffer->setValue(buffer); Error: COMPILER_WARNING (CWE-457): [#def6] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:61:22: warning[-Wmaybe-uninitialized]: ‘cache’ may be used uninitialized # 61 | m_cache->setValue(cache + slab); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:32:56: note: ‘cache’ was declared here # 32 | unsigned long long total, free, available, buffer, cache, slab, swapTotal, swapFree; # | ^~~~~ # 59| m_free->setValue(available); # 60| m_application->setValue(total - free - cache - buffer - slab); # 61|-> m_cache->setValue(cache + slab); # 62| m_buffer->setValue(buffer); # 63| m_swapTotal->setValue(swapTotal); Error: COMPILER_WARNING (CWE-457): [#def7] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:61:22: warning[-Wmaybe-uninitialized]: ‘slab’ may be used uninitialized # 61 | m_cache->setValue(cache + slab); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:32:63: note: ‘slab’ was declared here # 32 | unsigned long long total, free, available, buffer, cache, slab, swapTotal, swapFree; # | ^~~~ # 59| m_free->setValue(available); # 60| m_application->setValue(total - free - cache - buffer - slab); # 61|-> m_cache->setValue(cache + slab); # 62| m_buffer->setValue(buffer); # 63| m_swapTotal->setValue(swapTotal); Error: COMPILER_WARNING (CWE-457): [#def8] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:62:23: warning[-Wmaybe-uninitialized]: ‘buffer’ may be used uninitialized # 62 | m_buffer->setValue(buffer); # | ~~~~~~~~~~~~~~~~~~^~~~~~~~ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:32:48: note: ‘buffer’ was declared here # 32 | unsigned long long total, free, available, buffer, cache, slab, swapTotal, swapFree; # | ^~~~~~ # 60| m_application->setValue(total - free - cache - buffer - slab); # 61| m_cache->setValue(cache + slab); # 62|-> m_buffer->setValue(buffer); # 63| m_swapTotal->setValue(swapTotal); # 64| m_swapUsed->setValue(swapTotal - swapFree); Error: COMPILER_WARNING (CWE-457): [#def9] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:64:25: warning[-Wmaybe-uninitialized]: ‘swapTotal’ may be used uninitialized # 64 | m_swapUsed->setValue(swapTotal - swapFree); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:32:69: note: ‘swapTotal’ was declared here # 32 | unsigned long long total, free, available, buffer, cache, slab, swapTotal, swapFree; # | ^~~~~~~~~ # 62| m_buffer->setValue(buffer); # 63| m_swapTotal->setValue(swapTotal); # 64|-> m_swapUsed->setValue(swapTotal - swapFree); # 65| m_swapFree->setValue(swapFree); # 66| } Error: COMPILER_WARNING (CWE-457): [#def10] ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:65:25: warning[-Wmaybe-uninitialized]: ‘swapFree’ may be used uninitialized # 65 | m_swapFree->setValue(swapFree); # | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ksystemstats-6.2.3-build/ksystemstats-6.2.3/plugins/memory/linuxbackend.cpp:32:80: note: ‘swapFree’ was declared here # 32 | unsigned long long total, free, available, buffer, cache, slab, swapTotal, swapFree; # | ^~~~~~~~ # 63| m_swapTotal->setValue(swapTotal); # 64| m_swapUsed->setValue(swapTotal - swapFree); # 65|-> m_swapFree->setValue(swapFree); # 66| } # 67|
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-42.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | ksystemstats-6.2.3-1.fc42 |
store-results-to | /tmp/tmpwxcpieul/ksystemstats-6.2.3-1.fc42.tar.xz |
time-created | 2024-11-13 01:09:47 |
time-finished | 2024-11-13 01:12:03 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpwxcpieul/ksystemstats-6.2.3-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpwxcpieul/ksystemstats-6.2.3-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |