kf6-modemmanager-qt-6.3.0-1.fc41
List of Defects
Error: COMPILER_WARNING (CWE-563): [#def1]
kf6-modemmanager-qt-6.3.0-build/modemmanager-qt-6.3.0/src/modemdevice.cpp: scope_hint: In member function ‘void ModemManager::ModemDevicePrivate::init()’
kf6-modemmanager-qt-6.3.0-build/modemmanager-qt-6.3.0/src/modemdevice.cpp:51:10: warning[-Wunused-but-set-variable]: variable ‘success’ set but not used
# 51 | bool success = QDBusConnection::sessionBus().connect(QLatin1String(MMQT_DBUS_SERVICE),
# | ^~~~~~~
# 49| Q_Q(ModemManager::ModemDevice);
# 50| #ifdef MMQT_STATIC
# 51|-> bool success = QDBusConnection::sessionBus().connect(QLatin1String(MMQT_DBUS_SERVICE),
# 52| QLatin1String(MMQT_DBUS_PATH),
# 53| QLatin1String(DBUS_INTERFACE_MANAGER),
Error: CLANG_WARNING: [#def2]
kf6-modemmanager-qt-6.3.0-build/modemmanager-qt-6.3.0/src/modemdevice.cpp:51:10: warning[deadcode.DeadStores]: Value stored to 'success' during its initialization is never read
# 49| Q_Q(ModemManager::ModemDevice);
# 50| #ifdef MMQT_STATIC
# 51|-> bool success = QDBusConnection::sessionBus().connect(QLatin1String(MMQT_DBUS_SERVICE),
# 52| QLatin1String(MMQT_DBUS_PATH),
# 53| QLatin1String(DBUS_INTERFACE_MANAGER),
Error: CLANG_WARNING: [#def3]
kf6-modemmanager-qt-6.3.0-build/modemmanager-qt-6.3.0/src/modemdevice.cpp:57:5: warning[deadcode.DeadStores]: Value stored to 'success' is never read
# 55| this,
# 56| SLOT(onInterfacesAdded(QDBusObjectPath, ModemManager::MMVariantMapMap)));
# 57|-> success = QDBusConnection::sessionBus().connect(QLatin1String(MMQT_DBUS_SERVICE),
# 58| QLatin1String(MMQT_DBUS_PATH),
# 59| QLatin1String(DBUS_INTERFACE_MANAGER),
Error: COMPILER_WARNING (CWE-563): [#def4]
kf6-modemmanager-qt-6.3.0-build/modemmanager-qt-6.3.0/src/modemdevice.cpp: scope_hint: In member function ‘void ModemManager::ModemDevicePrivate::init()’
kf6-modemmanager-qt-6.3.0-build/modemmanager-qt-6.3.0/src/modemdevice.cpp:64:10: warning[-Wunused-but-set-variable]: variable ‘success’ set but not used
# 64 | bool success = QDBusConnection::systemBus().connect(QLatin1String(MMQT_DBUS_SERVICE),
# | ^~~~~~~
# 62| SLOT(onInterfacesRemoved(QDBusObjectPath, QStringList)));
# 63| #else
# 64|-> bool success = QDBusConnection::systemBus().connect(QLatin1String(MMQT_DBUS_SERVICE),
# 65| QLatin1String(MMQT_DBUS_PATH),
# 66| QLatin1String(DBUS_INTERFACE_MANAGER),
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-170.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kf6-modemmanager-qt-6.3.0-1.fc41 |
store-results-to | /tmp/tmpe3oa5ni_/kf6-modemmanager-qt-6.3.0-1.fc41.tar.xz |
time-created | 2024-07-03 14:19:21 |
time-finished | 2024-07-03 14:23:10 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpe3oa5ni_/kf6-modemmanager-qt-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpe3oa5ni_/kf6-modemmanager-qt-6.3.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |