Error: COMPILER_WARNING (CWE-477): [#def1] libksysguard-6.2.3-build/libksysguard-6.2.3/faces/SensorFaceController.cpp: scope_hint: In member function ‘void KSysGuard::SensorFaceController::loadPreset(const QString&)’ libksysguard-6.2.3-build/libksysguard-6.2.3/faces/SensorFaceController.cpp:928:42: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 928 | if (item->property().type() == QVariant::StringList) { # | ~~~~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:433:10: note: declared here # 433 | Type type() const # | ^~~~ # 926| KConfigSkeletonItem *item = d->faceConfigLoader->findItemByName(key); # 927| if (item) { # 928|-> if (item->property().type() == QVariant::StringList) { # 929| item->setProperty(presetGroup.readEntry(key, QStringList())); # 930| } else { Error: CPPCHECK_WARNING (CWE-909): [#def2] libksysguard-6.2.3-build/libksysguard-6.2.3/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.2.3-build/libksysguard-6.2.3/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.2.3-build/libksysguard-6.2.3/sensors/Sensor.cpp: scope_hint: At global scope libksysguard-6.2.3-build/libksysguard-6.2.3/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:143:70: note: declared here # 143 | 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.2.3-build/libksysguard-6.2.3/sensors/Sensor.cpp: scope_hint: In member function ‘QVariant KSysGuard::Sensor::value() const’ libksysguard-6.2.3-build/libksysguard-6.2.3/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:429:14: note: declared here # 429 | 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.2.3-build/libksysguard-6.2.3/sensors/Sensor.cpp:8: included_from: Included from here. libksysguard-6.2.3-build/libksysguard-6.2.3/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.2.3-build/libksysguard-6.2.3/sensors/Sensor.h:15: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:143:70: note: declared here # 143 | 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.2.3-build/libksysguard-6.2.3/sensors/SensorUnitModel.cpp: scope_hint: In member function ‘virtual QVariant KSysGuard::SensorUnitModel::data(const QModelIndex&, int) const’ libksysguard-6.2.3-build/libksysguard-6.2.3/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:33: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:12: included_from: Included from here. /usr/include/qt6/QtCore/qmap.h:476:25: note: declared here # 476 | 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.2.3-build/libksysguard-6.2.3/redhat-linux-build/systemstats/org.kde.ksystemstats1.h:22: included_from: Included from here. libksysguard-6.2.3-build/libksysguard-6.2.3/redhat-linux-build/systemstats/org.kde.ksystemstats1.cpp:12: included_from: Included from here. libksysguard-6.2.3-build/libksysguard-6.2.3/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.2.3-build/libksysguard-6.2.3/redhat-linux-build/systemstats/org.kde.ksystemstats1.h:20: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:143:70: note: declared here # 143 | 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.2.3-build/libksysguard-6.2.3/systemstats/SensorInfo.h: scope_hint: In function ‘const QDBusArgument& KSysGuard::operator>>(const QDBusArgument&, SensorInfo&)’ libksysguard-6.2.3-build/libksysguard-6.2.3/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:143:70: note: declared here # 143 | 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.2.3-build/libksysguard-6.2.3/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:143:70: note: declared here # 143 | 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.2.3-build/libksysguard-6.2.3/systemstats/SensorProperty.h: scope_hint: At global scope libksysguard-6.2.3-build/libksysguard-6.2.3/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:143:70: note: declared here # 143 | 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.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-218.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libksysguard-6.2.3-1.fc42 |
store-results-to | /tmp/tmpkjvgvqqd/libksysguard-6.2.3-1.fc42.tar.xz |
time-created | 2024-11-13 01:41:25 |
time-finished | 2024-11-13 01:44:29 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpkjvgvqqd/libksysguard-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/tmpkjvgvqqd/libksysguard-6.2.3-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |