plasma-integration-6.1.1-1.fc41

List of Defects

Error: COMPILER_WARNING (CWE-563): [#def1]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt5/src/platformtheme/kdirselectdialog.cpp:263:83: warning[-Wunused-parameter]: unused parameter ‘parent’
#  263 | KDirSelectDialog::KDirSelectDialog(const QUrl &startDir, bool localOnly, QWidget *parent)
#      |                                                                          ~~~~~~~~~^~~~~~
#  261|   }
#  262|   
#  263|-> KDirSelectDialog::KDirSelectDialog(const QUrl &startDir, bool localOnly, QWidget *parent)
#  264|       // #ifdef Q_OS_WIN
#  265|       //     : QDialog(parent, Qt::WindowMinMaxButtonsHint),

Error: COMPILER_WARNING: [#def2]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt5/src/platformtheme/kdirselectdialog.cpp: scope_hint: In constructor ‘KDirSelectDialog::KDirSelectDialog(const QUrl&, bool, QWidget*)’
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt5/src/platformtheme/kdirselectdialog.cpp:357:44: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  357 |     d->deleteAction->setShortcut(Qt::SHIFT | Qt::Key_Delete);
#      |                                  ~~~~~~~~~~^~~~~~~~~~~~~~~~
#  355|       d->m_actions->addAction(d->deleteAction->objectName(), d->deleteAction);
#  356|       d->deleteAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete")));
#  357|->     d->deleteAction->setShortcut(Qt::SHIFT | Qt::Key_Delete);
#  358|       connect(d->deleteAction, &QAction::triggered, this, [this]() {
#  359|           d->slotDelete();

Error: COMPILER_WARNING: [#def3]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt5/src/platformtheme/kdirselectdialog.cpp:375:43: warning[-Wdeprecated-enum-enum-conversion]: bitwise operation between different enumeration types ‘Qt::Modifier’ and ‘Qt::Key’ is deprecated
#  375 |     propertiesAction->setShortcut(Qt::ALT | Qt::Key_Return);
#      |                                   ~~~~~~~~^~~~~~~~~~~~~~~~
#  373|       d->m_actions->addAction(propertiesAction->objectName(), propertiesAction);
#  374|       propertiesAction->setIcon(QIcon::fromTheme(QStringLiteral("document-properties")));
#  375|->     propertiesAction->setShortcut(Qt::ALT | Qt::Key_Return);
#  376|       connect(propertiesAction, &QAction::triggered, this, [this]() {
#  377|           d->slotProperties();

Error: COMPILER_WARNING (CWE-477): [#def4]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/kdeplatformsystemtrayicon.cpp: scope_hint: In constructor ‘SystemTrayMenu::SystemTrayMenu()’
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/kdeplatformsystemtrayicon.cpp:19:7: warning[-Wdeprecated-declarations]: ‘QVariant::QVariant(Type)’ is deprecated: Use the constructor taking a QMetaType instead.
#   19 |     , m_enabled(QVariant::Bool)
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/QVariant:1: included_from: Included from here.
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/kdeplatformsystemtrayicon.h:9: included_from: Included from here.
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/kdeplatformsystemtrayicon.cpp:6: included_from: Included from here.
/usr/include/qt6/QtCore/qvariant.h:428:14: note: declared here
#  428 |     explicit QVariant(Type type)
#      |              ^~~~~~~~
#   17|   SystemTrayMenu::SystemTrayMenu()
#   18|       : QPlatformMenu()
#   19|->     , m_enabled(QVariant::Bool)
#   20|       , m_visible(QVariant::Bool)
#   21|       , m_separatorsCollapsible(QVariant::Bool)

Error: COMPILER_WARNING (CWE-477): [#def5]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/kdeplatformsystemtrayicon.cpp:20:7: warning[-Wdeprecated-declarations]: ‘QVariant::QVariant(Type)’ is deprecated: Use the constructor taking a QMetaType instead.
#   20 |     , m_visible(QVariant::Bool)
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:428:14: note: declared here
#  428 |     explicit QVariant(Type type)
#      |              ^~~~~~~~
#   18|       : QPlatformMenu()
#   19|       , m_enabled(QVariant::Bool)
#   20|->     , m_visible(QVariant::Bool)
#   21|       , m_separatorsCollapsible(QVariant::Bool)
#   22|       , m_tag(0)

Error: COMPILER_WARNING (CWE-477): [#def6]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/kdeplatformsystemtrayicon.cpp:21:7: warning[-Wdeprecated-declarations]: ‘QVariant::QVariant(Type)’ is deprecated: Use the constructor taking a QMetaType instead.
#   21 |     , m_separatorsCollapsible(QVariant::Bool)
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qvariant.h:428:14: note: declared here
#  428 |     explicit QVariant(Type type)
#      |              ^~~~~~~~
#   19|       , m_enabled(QVariant::Bool)
#   20|       , m_visible(QVariant::Bool)
#   21|->     , m_separatorsCollapsible(QVariant::Bool)
#   22|       , m_tag(0)
#   23|   {

Error: COMPILER_WARNING (CWE-563): [#def7]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/kdirselectdialog.cpp: scope_hint: In constructor ‘KDirSelectDialog::KDirSelectDialog(const QUrl&, bool, QWidget*)’
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/kdirselectdialog.cpp:263:83: warning[-Wunused-parameter]: unused parameter ‘parent’
#  263 | KDirSelectDialog::KDirSelectDialog(const QUrl &startDir, bool localOnly, QWidget *parent)
#      |                                                                          ~~~~~~~~~^~~~~~
#  261|   }
#  262|   
#  263|-> KDirSelectDialog::KDirSelectDialog(const QUrl &startDir, bool localOnly, QWidget *parent)
#  264|       // #ifdef Q_OS_WIN
#  265|       //     : QDialog(parent, Qt::WindowMinMaxButtonsHint),

Error: COMPILER_WARNING (CWE-477): [#def8]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/khintssettings.cpp: scope_hint: In member function ‘void KHintsSettings::slotNotifyChange(int, int)’
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/khintssettings.cpp:248:40: warning[-Wdeprecated-declarations]: ‘void QGuiApplication::paletteChanged(const QPalette&)’ is deprecated: Handle QEvent::ApplicationPaletteChange instead
#  248 |             Q_EMIT qApp->paletteChanged(palette);
#      |                                        ^
/usr/include/qt6/QtWidgets/qapplication.h:13: included_from: Included from here.
/usr/include/qt6/QtWidgets/QApplication:1: included_from: Included from here.
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/khintssettings.cpp:12: 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);
#      |                                                                                         ^~~~~~~~~~~~~~
#  246|               // so things like SystemPalette QtQuick item that use it won't notice a palette
#  247|               // change when a QApplication which causes e.g. QML System Settings modules to not update
#  248|->             Q_EMIT qApp->paletteChanged(palette);
#  249|           } else if (qobject_cast<QGuiApplication *>(QCoreApplication::instance())) {
#  250|               QGuiApplication::setPalette(*m_palettes[QPlatformTheme::SystemPalette]);

Error: CLANG_WARNING: [#def9]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/kwaylandintegration.cpp:156:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'menu'
#  154|           }
#  155|       }
#  156|-> }
#  157|   
#  158|   void KWaylandIntegration::shellSurfaceDestroyed(QWindow *w)

Error: CLANG_WARNING: [#def10]
plasma-integration-6.1.1-build/plasma-integration-6.1.1/qt6/src/platformtheme/qxdgdesktopportalfiledialog.cpp:251:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'watcher'
#  249|           }
#  250|       });
#  251|-> }
#  252|   
#  253|   bool QXdgDesktopPortalFileDialog::defaultNameFilterDisables() const

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-138.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameplasma-integration-6.1.1-1.fc41
store-results-to/tmp/tmptb0r62qi/plasma-integration-6.1.1-1.fc41.tar.xz
time-created2024-07-03 16:58:34
time-finished2024-07-03 17:00:54
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmptb0r62qi/plasma-integration-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmptb0r62qi/plasma-integration-6.1.1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9