Error: COMPILER_WARNING (CWE-477): [#def1] libksysguard-6.5.4/faces/SensorFaceController.cpp: scope_hint: In member function ‘void KSysGuard::SensorFaceController::loadPreset(const QString&)’ libksysguard-6.5.4/faces/SensorFaceController.cpp:940:42: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 940 | if (item->property().type() == QVariant::StringList) { # | ~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:564:10: note: declared here # 564 | Type type() const # | ^~~~ # 938| KConfigSkeletonItem *item = d->faceConfigLoader->findItemByName(key); # 939| if (item) { # 940|-> if (item->property().type() == QVariant::StringList) { # 941| item->setProperty(presetGroup.readEntry(key, QStringList())); # 942| } else { Error: CPPCHECK_WARNING (CWE-909): [#def2] libksysguard-6.5.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.5.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.5.4/sensors/Sensor.cpp: scope_hint: At global scope libksysguard-6.5.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:156:70: note: declared here # 156 | 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.5.4/sensors/Sensor.cpp: scope_hint: In member function ‘QVariant KSysGuard::Sensor::value() const’ libksysguard-6.5.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:560:14: note: declared here # 560 | 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.5.4/redhat-linux-build/sensors/Sensors_autogen/EWIEGA46WW/moc_Sensor.cpp:9: included_from: Included from here. libksysguard-6.5.4/redhat-linux-build/sensors/Sensors_autogen/mocs_compilation.cpp:2: included_from: Included from here. libksysguard-6.5.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.5.4/sensors/Sensor.h:15: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:156:70: note: declared here # 156 | 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.5.4/sensors/SensorUnitModel.cpp: scope_hint: In member function ‘virtual QVariant KSysGuard::SensorUnitModel::data(const QModelIndex&, int) const’ libksysguard-6.5.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:42: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:13: included_from: Included from here. /usr/include/qt6/QtCore/qmap.h:484:25: note: declared here # 484 | 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.5.4/redhat-linux-build/systemstats/org.kde.ksystemstats1.h:22: included_from: Included from here. libksysguard-6.5.4/redhat-linux-build/systemstats/org.kde.ksystemstats1.cpp:12: included_from: Included from here. libksysguard-6.5.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.5.4/redhat-linux-build/systemstats/org.kde.ksystemstats1.h:20: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:156:70: note: declared here # 156 | 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.5.4/systemstats/SensorInfo.h: scope_hint: In function ‘const QDBusArgument& KSysGuard::operator>>(const QDBusArgument&, SensorInfo&)’ libksysguard-6.5.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:156:70: note: declared here # 156 | 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.5.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:156:70: note: declared here # 156 | 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.5.4/systemstats/SensorProperty.h: scope_hint: At global scope libksysguard-6.5.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:156:70: note: declared here # 156 | 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.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-138.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libksysguard-6.5.4-1.fc44 |
| store-results-to | /tmp/tmpqfkt_jo4/libksysguard-6.5.4-1.fc44.tar.xz |
| time-created | 2026-01-08 18:56:48 |
| time-finished | 2026-01-08 18:59:50 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpqfkt_jo4/libksysguard-6.5.4-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqfkt_jo4/libksysguard-6.5.4-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |