Error: COMPILER_WARNING (CWE-477): [#def1] libksysguard-6.3.4/faces/SensorFaceController.cpp: scope_hint: In member function ‘void KSysGuard::SensorFaceController::loadPreset(const QString&)’ libksysguard-6.3.4/faces/SensorFaceController.cpp:930:42: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 930 | if (item->property().type() == QVariant::StringList) { # | ~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:432:10: note: declared here # 432 | Type type() const # | ^~~~ # 928| KConfigSkeletonItem *item = d->faceConfigLoader->findItemByName(key); # 929| if (item) { # 930|-> if (item->property().type() == QVariant::StringList) { # 931| item->setProperty(presetGroup.readEntry(key, QStringList())); # 932| } else { Error: CPPCHECK_WARNING (CWE-909): [#def2] libksysguard-6.3.4/processcore/plugins/network/helper/ConnectionMapping.cpp:109: error[uninitStructMember]: Uninitialized struct member: result.direction # 107| # 108| if (sourceInode == m_oldState.addressToInode.end() && destInode == m_oldState.addressToInode.end()) { # 109|-> return result; # 110| } # 111| Error: CPPCHECK_WARNING (CWE-457): [#def3] libksysguard-6.3.4/processcore/plugins/network/helper/ConnectionMapping.cpp:109: error[uninitvar]: Uninitialized variable: result.direction # 107| # 108| if (sourceInode == m_oldState.addressToInode.end() && destInode == m_oldState.addressToInode.end()) { # 109|-> return result; # 110| } # 111| Error: COMPILER_WARNING (CWE-477): [#def4] libksysguard-6.3.4/sensors/Sensor.cpp: scope_hint: At global scope libksysguard-6.3.4/sensors/Sensor.cpp:163:31: warning[-Wdeprecated-declarations]: ‘Type’ is deprecated: Use QMetaType::Type instead. # 163 | QVariant::Type Sensor::type() const # | ^~~~~ /usr/include/qt6/QtCore/qvariant.h:142:70: note: declared here # 142 | enum QT_DEPRECATED_VERSION_X_6_0("Use QMetaType::Type instead.") Type # | ^~~~ # 161| } # 162| # 163|-> QVariant::Type Sensor::type() const # 164| { # 165| return d->sensorInfo.variantType; Error: COMPILER_WARNING (CWE-477): [#def5] libksysguard-6.3.4/sensors/Sensor.cpp: scope_hint: In member function ‘QVariant KSysGuard::Sensor::value() const’ libksysguard-6.3.4/sensors/Sensor.cpp:171:50: warning[-Wdeprecated-declarations]: ‘QVariant::QVariant(Type)’ is deprecated: Use the constructor taking a QMetaType instead. # 171 | return QVariant{d->sensorInfo.variantType}; # | ^ /usr/include/qt6/QtCore/qvariant.h:428:14: note: declared here # 428 | explicit QVariant(Type type) # | ^~~~~~~~ # 169| { # 170| if (!d->value.isValid()) { # 171|-> return QVariant{d->sensorInfo.variantType}; # 172| } # 173| return d->value; Error: COMPILER_WARNING (CWE-477): [#def6] libksysguard-6.3.4/sensors/Sensor.cpp:8: included_from: Included from here. libksysguard-6.3.4/sensors/Sensor.h:159:27: warning[-Wdeprecated-declarations]: ‘Type’ is deprecated: Use QMetaType::Type instead. # 159 | QVariant::Type type() const; # | ^~~~~ /usr/include/qt6/QtCore/QVariant:1: included_from: Included from here. libksysguard-6.3.4/sensors/Sensor.h:15: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:142:70: note: declared here # 142 | enum QT_DEPRECATED_VERSION_X_6_0("Use QMetaType::Type instead.") Type # | ^~~~ # 157| qreal minimum() const; # 158| qreal maximum() const; # 159|-> QVariant::Type type() const; # 160| /** # 161| * This signal is emitted when any of the metadata properties change. Error: COMPILER_WARNING (CWE-477): [#def7] libksysguard-6.3.4/sensors/SensorUnitModel.cpp: scope_hint: In member function ‘virtual QVariant KSysGuard::SensorUnitModel::data(const QModelIndex&, int) const’ libksysguard-6.3.4/sensors/SensorUnitModel.cpp:104:45: warning[-Wdeprecated-declarations]: ‘QMap<KSysGuard::Unit, UnitInfo>::iterator operator+(QMap<KSysGuard::Unit, UnitInfo>::iterator, QMap<KSysGuard::Unit, UnitInfo>::iterator::difference_type)’ is deprecated: Use std::next; QMap iterators are not random access # 104 | auto itr = d->units.begin() + index.row(); # | ^ /usr/include/qt6/QtCore/qdebug.h:41: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:12: included_from: Included from here. /usr/include/qt6/QtCore/qmap.h:478:25: note: declared here # 478 | friend iterator operator+(iterator it, difference_type j) { return std::next(it, j); } # | ^~~~~~~~ # 102| } # 103| # 104|-> auto itr = d->units.begin() + index.row(); # 105| auto entry = itr.value(); # 106| Error: COMPILER_WARNING (CWE-477): [#def8] libksysguard-6.3.4/redhat-linux-build/systemstats/org.kde.ksystemstats1.h:22: included_from: Included from here. libksysguard-6.3.4/redhat-linux-build/systemstats/org.kde.ksystemstats1.cpp:12: included_from: Included from here. libksysguard-6.3.4/systemstats/SensorInfo.h:32:44: warning[-Wdeprecated-declarations]: ‘Type’ is deprecated: Use QMetaType::Type instead. # 32 | QVariant::Type variantType = QVariant::Invalid; # | ^~~~~~~ /usr/include/qt6/QtCore/QVariant:1: included_from: Included from here. libksysguard-6.3.4/redhat-linux-build/systemstats/org.kde.ksystemstats1.h:20: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:142:70: note: declared here # 142 | enum QT_DEPRECATED_VERSION_X_6_0("Use QMetaType::Type instead.") Type # | ^~~~ # 30| QString shortName; // Shorter translated name of the sensor, to use when space is constrained. # 31| QString description; // Translated description of the sensor. # 32|-> QVariant::Type variantType = QVariant::Invalid; # 33| KSysGuard::Unit unit = KSysGuard::UnitInvalid; // Both a format hint and implies data type (i.e double/string) # 34| qreal min = 0; Error: COMPILER_WARNING (CWE-477): [#def9] libksysguard-6.3.4/systemstats/SensorInfo.h: scope_hint: In function ‘const QDBusArgument& KSysGuard::operator>>(const QDBusArgument&, SensorInfo&)’ libksysguard-6.3.4/systemstats/SensorInfo.h:76:43: warning[-Wdeprecated-declarations]: ‘Type’ is deprecated: Use QMetaType::Type instead. # 76 | s.variantType = static_cast<QVariant::Type>(t); # | ^~~~ /usr/include/qt6/QtCore/qvariant.h:142:70: note: declared here # 142 | enum QT_DEPRECATED_VERSION_X_6_0("Use QMetaType::Type instead.") Type # | ^~~~ # 74| uint32_t t; # 75| argument >> t; # 76|-> s.variantType = static_cast<QVariant::Type>(t); # 77| argument >> t; # 78| s.unit = static_cast<KSysGuard::Unit>(t); Error: COMPILER_WARNING (CWE-477): [#def10] libksysguard-6.3.4/systemstats/SensorProperty.cpp:164:56: warning[-Wdeprecated-declarations]: ‘Type’ is deprecated: Use QMetaType::Type instead. # 164 | void SensorProperty::setVariantType(QVariant::Type type) # | ^ /usr/include/qt6/QtCore/qvariant.h:142:70: note: declared here # 142 | enum QT_DEPRECATED_VERSION_X_6_0("Use QMetaType::Type instead.") Type # | ^~~~ # 162| } # 163| # 164|-> void SensorProperty::setVariantType(QVariant::Type type) # 165| { # 166| if (d->info.variantType == type) { Error: COMPILER_WARNING (CWE-477): [#def11] libksysguard-6.3.4/systemstats/SensorProperty.h: scope_hint: At global scope libksysguard-6.3.4/systemstats/SensorProperty.h:84:44: warning[-Wdeprecated-declarations]: ‘Type’ is deprecated: Use QMetaType::Type instead. # 84 | void setVariantType(QVariant::Type type); # | ^ /usr/include/qt6/QtCore/qvariant.h:142:70: note: declared here # 142 | enum QT_DEPRECATED_VERSION_X_6_0("Use QMetaType::Type instead.") Type # | ^~~~ # 82| void setMax(SensorProperty *other); # 83| void setUnit(KSysGuard::Unit unit); # 84|-> void setVariantType(QVariant::Type type); # 85| # 86| bool isSubscribed() const;
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
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-150.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | libksysguard-6.3.4-1.fc43 |
store-results-to | /tmp/tmpgliqtf7a/libksysguard-6.3.4-1.fc43.tar.xz |
time-created | 2025-04-25 14:01:46 |
time-finished | 2025-04-25 14:04:53 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpgliqtf7a/libksysguard-6.3.4-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpgliqtf7a/libksysguard-6.3.4-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |