Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
libksysguard-6.0.3-build/libksysguard-6.0.3/systemstats/AggregateSensor.cpp: scope_hint: In function ‘QVariant addVariants(const QVariant&, const QVariant&)’
libksysguard-6.0.3-build/libksysguard-6.0.3/systemstats/AggregateSensor.cpp:29:27: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType().
#   29 |     auto type = first.type();
#      |                 ~~~~~~~~~~^~
/usr/include/qt6/QtCore/qvariant.h:432:10: note: declared here
#  432 |     Type type() const
#      |          ^~~~
#   27|       bool convertSecond = false;
#   28|   
#   29|->     auto type = first.type();
#   30|       switch (static_cast<QMetaType::Type>(type)) {
#   31|       case QMetaType::Char:

Error: COMPILER_WARNING (CWE-477): [#def2]
libksysguard-6.0.3-build/libksysguard-6.0.3/systemstats/AggregateSensor.cpp:57:24: warning[-Wdeprecated-declarations]: ‘bool QVariant::convert(int)’ is deprecated
#   57 |     if (!result.convert(type)) {
#      |          ~~~~~~~~~~~~~~^~~~~~
/usr/include/qt6/QtCore/qvariant.h:356:10: note: declared here
#  356 |     bool convert(int targetTypeId)
#      |          ^~~~~~~
#   55|       }
#   56|   
#   57|->     if (!result.convert(type)) {
#   58|           return first;
#   59|       }

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-71.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namelibksysguard-6.1.1-1.fc41
diffbase-store-results-to/tmp/tmp107sx66f/libksysguard-6.1.1-1.fc41.tar.xz
diffbase-time-created2024-07-03 14:52:55
diffbase-time-finished2024-07-03 14:56:16
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp107sx66f/libksysguard-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp107sx66f/libksysguard-6.1.1-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-71.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibksysguard-6.0.3-1.fc40
store-results-to/tmp/tmp1gihqnnk/libksysguard-6.0.3-1.fc40.tar.xz
time-created2024-07-03 14:48:28
time-finished2024-07-03 14:52:32
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp1gihqnnk/libksysguard-6.0.3-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp1gihqnnk/libksysguard-6.0.3-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9