Error: COMPILER_WARNING (CWE-477): [#def1] xdg-desktop-portal-kde-6.3.4/src/dynamiclauncher.cpp: scope_hint: In function ‘QIcon extractIcon(const QDBusVariant&)’ xdg-desktop-portal-kde-6.3.4/src/dynamiclauncher.cpp:64:61: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 64 | if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) { # | ~~~~~~~~~~~~~^~ /usr/include/qt6/QtDBus/qtdbusglobal.h:9: included_from: Included from here. /usr/include/qt6/QtDBus/qdbusabstractadaptor.h:7: included_from: Included from here. /usr/include/qt6/QtDBus/QDBusAbstractAdaptor:1: included_from: Included from here. xdg-desktop-portal-kde-6.3.4/src/dynamiclauncher.h:6: included_from: Included from here. xdg-desktop-portal-kde-6.3.4/src/dynamiclauncher.cpp:4: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:432:10: note: declared here # 432 | Type type() const # | ^~~~ # 62| const QVariant iconData = icon.data.variant(); # 63| // NB: The DynamicLauncher portal only accept GByteIcons, i.e. the only type we'll ever get are bytes. # 64|-> if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) { # 65| QPixmap pixmap; # 66| pixmap.loadFromData(iconData.toByteArray()); Error: COMPILER_WARNING (CWE-477): [#def2] xdg-desktop-portal-kde-6.3.4/src/dynamiclauncher.cpp: scope_hint: In member function ‘uint DynamicLauncherPortal::PrepareInstall(const QDBusObjectPath&, const QString&, const QString&, const QString&, const QDBusVariant&, const QVariantMap&, QVariantMap&)’ xdg-desktop-portal-kde-6.3.4/src/dynamiclauncher.cpp:136:68: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 136 | if (editableIcon && dialog.m_icon != icon && dialog.m_icon.type() == QVariant::String) { # | ~~~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:432:10: note: declared here # 432 | Type type() const # | ^~~~ # 134| } # 135| # 136|-> if (editableIcon && dialog.m_icon != icon && dialog.m_icon.type() == QVariant::String) { # 137| const auto data = iconFromName(dialog.m_icon.toString()); # 138| if (!data.isEmpty()) { Error: COMPILER_WARNING (CWE-563): [#def3] xdg-desktop-portal-kde-6.3.4/src/inputcapturedialog.cpp: scope_hint: In constructor ‘InputCaptureDialog::InputCaptureDialog(const QString&, InputCapturePortal::Capabilities, QObject*)’ xdg-desktop-portal-kde-6.3.4/src/inputcapturedialog.cpp:12:95: warning[-Wunused-parameter]: unused parameter ‘capabilties’ # 12 | InputCaptureDialog::InputCaptureDialog(const QString &appId, InputCapturePortal::Capabilities capabilties, QObject *parent) # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ # 10| using namespace Qt::StringLiterals; # 11| # 12|-> InputCaptureDialog::InputCaptureDialog(const QString &appId, InputCapturePortal::Capabilities capabilties, QObject *parent) # 13| : QuickDialog(parent) # 14| { Error: COMPILER_WARNING (CWE-477): [#def4] xdg-desktop-portal-kde-6.3.4/src/notification.cpp: scope_hint: In member function ‘void NotificationPortal::AddNotification(const QString&, const QString&, const QVariantMap&)’ xdg-desktop-portal-kde-6.3.4/src/notification.cpp:52:29: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 52 | if (iconVariant.type() == QVariant::String) { # | ~~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtDBus/qtdbusglobal.h:9: included_from: Included from here. /usr/include/qt6/QtDBus/qdbusabstractadaptor.h:7: included_from: Included from here. /usr/include/qt6/QtDBus/QDBusAbstractAdaptor:1: included_from: Included from here. xdg-desktop-portal-kde-6.3.4/src/notification.h:12: included_from: Included from here. xdg-desktop-portal-kde-6.3.4/src/notification.cpp:8: included_from: Included from here. /usr/include/qt6/QtCore/qvariant.h:432:10: note: declared here # 432 | Type type() const # | ^~~~ # 50| if (notification.contains(QStringLiteral("icon"))) { # 51| QVariant iconVariant = notification.value(QStringLiteral("icon")); # 52|-> if (iconVariant.type() == QVariant::String) { # 53| notify->setIconName(iconVariant.toString()); # 54| } else { Error: COMPILER_WARNING (CWE-477): [#def5] xdg-desktop-portal-kde-6.3.4/src/notification.cpp:58:70: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 58 | if (icon.str == QStringLiteral("themed") && iconData.type() == QVariant::StringList) { # | ~~~~~~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:432:10: note: declared here # 432 | Type type() const # | ^~~~ # 56| PortalIcon icon = qdbus_cast<PortalIcon>(argument); # 57| QVariant iconData = icon.data.variant(); # 58|-> if (icon.str == QStringLiteral("themed") && iconData.type() == QVariant::StringList) { # 59| notify->setIconName(iconData.toStringList().first()); # 60| } else if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) { Error: COMPILER_WARNING (CWE-477): [#def6] xdg-desktop-portal-kde-6.3.4/src/notification.cpp:60:76: warning[-Wdeprecated-declarations]: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). # 60 | } else if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) { # | ~~~~~~~~~~~~~^~ /usr/include/qt6/QtCore/qvariant.h:432:10: note: declared here # 432 | Type type() const # | ^~~~ # 58| if (icon.str == QStringLiteral("themed") && iconData.type() == QVariant::StringList) { # 59| notify->setIconName(iconData.toStringList().first()); # 60|-> } else if (icon.str == QStringLiteral("bytes") && iconData.type() == QVariant::ByteArray) { # 61| QPixmap pixmap; # 62| if (pixmap.loadFromData(iconData.toByteArray(), "PNG")) { Error: COMPILER_WARNING (CWE-477): [#def7] xdg-desktop-portal-kde-6.3.4/src/region-select/SelectionEditor.cpp: scope_hint: In member function ‘void SelectionEditor::showViews()’ xdg-desktop-portal-kde-6.3.4/src/region-select/SelectionEditor.cpp:140:17: warning[-Wdeprecated-declarations]: ‘Qt::MaximizeUsingFullscreenGeometryHint’ is deprecated: Use Qt::ExpandedClientAreaHint instead # 140 | Qt::MaximizeUsingFullscreenGeometryHint, // also use the areas where system UIs are # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qobjectdefs.h:12: included_from: Included from here. /usr/include/qt6/QtCore/qobject.h:10: included_from: Included from here. /usr/include/qt6/QtCore/qabstracteventdispatcher.h:7: included_from: Included from here. /usr/include/qt6/QtCore/qbasictimer.h:8: included_from: Included from here. /usr/include/qt6/QtCore/qcoreevent.h:7: included_from: Included from here. /usr/include/qt6/QtGui/qevent.h:13: included_from: Included from here. /usr/include/qt6/QtGui/QKeyEvent:1: included_from: Included from here. xdg-desktop-portal-kde-6.3.4/src/region-select/SelectionEditor.h:3: included_from: Included from here. xdg-desktop-portal-kde-6.3.4/src/region-select/SelectionEditor.cpp:1: included_from: Included from here. /usr/include/qt6/QtCore/qnamespace.h:239:9: note: declared here # 239 | MaximizeUsingFullscreenGeometryHint Q_DECL_ENUMERATOR_DEPRECATED_X( # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 138| Qt::FramelessWindowHint, # 139| Qt::NoDropShadowWindowHint, # 140|-> Qt::MaximizeUsingFullscreenGeometryHint, // also use the areas where system UIs are # 141| }); # 142| view->setWindowStates(Qt::WindowFullScreen); Error: COMPILER_WARNING (CWE-563): [#def8] xdg-desktop-portal-kde-6.3.4/src/region-select/SelectionEditor.cpp: scope_hint: In member function ‘virtual bool SelectionEditor::eventFilter(QObject*, QEvent*)’ xdg-desktop-portal-kde-6.3.4/src/region-select/SelectionEditor.cpp:159:44: warning[-Wunused-parameter]: unused parameter ‘watched’ # 159 | bool SelectionEditor::eventFilter(QObject *watched, QEvent *event) # | ~~~~~~~~~^~~~~~~ # 157| } # 158| # 159|-> bool SelectionEditor::eventFilter(QObject *watched, QEvent *event) # 160| { # 161| switch (event->type()) { Error: COMPILER_WARNING (CWE-563): [#def9] xdg-desktop-portal-kde-6.3.4/src/session.cpp: scope_hint: In member function ‘void RemoteDesktopSession::setOptions(const QVariantMap&)’ xdg-desktop-portal-kde-6.3.4/src/session.cpp:232:58: warning[-Wunused-parameter]: unused parameter ‘options’ # 232 | void RemoteDesktopSession::setOptions(const QVariantMap &options) # | ~~~~~~~~~~~~~~~~~~~^~~~~~~ # 230| } # 231| # 232|-> void RemoteDesktopSession::setOptions(const QVariantMap &options) # 233| { # 234| } Error: COMPILER_WARNING (CWE-477): [#def10] xdg-desktop-portal-kde-6.3.4/src/settings.cpp: scope_hint: In constructor ‘FdoAppearanceSettings::FdoAppearanceSettings(QObject*)’ xdg-desktop-portal-kde-6.3.4/src/settings.cpp:219:44: warning[-Wdeprecated-declarations]: ‘void QGuiApplication::paletteChanged(const QPalette&)’ is deprecated: Handle QEvent::ApplicationPaletteChange instead # 219 | connect(qGuiApp, &QGuiApplication::paletteChanged, this, &FdoAppearanceSettings::onPaletteChanged); # | ^~~~~~~~~~~~~~ /usr/include/qt6/QtWidgets/qapplication.h:13: included_from: Included from here. /usr/include/qt6/QtWidgets/QApplication:1: included_from: Included from here. xdg-desktop-portal-kde-6.3.4/src/settings.cpp:13: included_from: Included from here. /usr/include/qt6/QtGui/qguiapplication.h:161:89: note: declared here # 161 | QT_DEPRECATED_VERSION_X_6_0("Handle QEvent::ApplicationPaletteChange instead") void paletteChanged(const QPalette &pal); # | ^~~~~~~~~~~~~~ # 217| { # 218| qDBusRegisterMetaType<AccentColorArray>(); # 219|-> connect(qGuiApp, &QGuiApplication::paletteChanged, this, &FdoAppearanceSettings::onPaletteChanged); # 220| } # 221|
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-7.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 | xdg-desktop-portal-kde-6.3.4-1.fc43 |
store-results-to | /tmp/tmps1ge751s/xdg-desktop-portal-kde-6.3.4-1.fc43.tar.xz |
time-created | 2025-04-25 16:09:23 |
time-finished | 2025-04-25 16:12:36 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmps1ge751s/xdg-desktop-portal-kde-6.3.4-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmps1ge751s/xdg-desktop-portal-kde-6.3.4-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |