kf5-knotifications-5.116.0-1.fc41

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/knotification.cpp: scope_hint: In member function ‘void KNotification::Private::raiseWidget(QWidget*)’
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/knotification.cpp:390:38: warning[-Wdeprecated-declarations]: ‘static void KWindowSystem::activateWindow(WId, long int)’ is deprecated: Since 5.101. Use KX11Extras::activateWindow() or KWindowSystem::activateWindow(QWindow *) instead
#  390 |         KWindowSystem::activateWindow(w->winId());
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/KF5/KWindowSystem/KWindowSystem:1: included_from: Included from here.
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/knotification.cpp:26: included_from: Included from here.
/usr/include/KF5/KWindowSystem/kwindowsystem.h:158:17: note: declared here
#  158 |     static void activateWindow(WId win, long time = 0);
#      |                 ^~~~~~~~~~~~~~
#  388|               KWindowSystem::setCurrentXdgActivationToken(xdgActivationToken);
#  389|           }
#  390|->         KWindowSystem::activateWindow(w->winId());
#  391|   #endif
#  392|       } else {

Error: COMPILER_WARNING (CWE-477): [#def2]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp: scope_hint: In member function ‘void KStatusNotifierItem::setAssociatedWidget(QWidget*)’
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:487:65: warning[-Wdeprecated-declarations]: ‘void KWindowSystem::windowAdded(WId)’ is deprecated: Since 5.101. Use KX11Extras::windowAdded()
#  487 |         QObject::connect(KWindowSystem::self(), &KWindowSystem::windowAdded, d->associatedWidget, [this](WId id) {
#      |                                                                 ^~~~~~~~~~~
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:39: included_from: Included from here.
/usr/include/KF5/KWindowSystem/kwindowsystem.h:899:10: note: declared here
#  899 |     void windowAdded(WId id);
#      |          ^~~~~~~~~~~
#  485|           d->associatedWidgetPos = QPoint(-1, -1);
#  486|   
#  487|->         QObject::connect(KWindowSystem::self(), &KWindowSystem::windowAdded, d->associatedWidget, [this](WId id) {
#  488|               if (d->associatedWidget->winId() == id && d->associatedWidgetPos != QPoint(-1, -1)) {
#  489|                   d->associatedWidget->move(d->associatedWidgetPos);

Error: COMPILER_WARNING (CWE-477): [#def3]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:493:65: warning[-Wdeprecated-declarations]: ‘void KWindowSystem::windowRemoved(WId)’ is deprecated: Since 5.101. Use KX11Extras::windowRemoved()
#  493 |         QObject::connect(KWindowSystem::self(), &KWindowSystem::windowRemoved, d->associatedWidget, [this](WId id) {
#      |                                                                 ^~~~~~~~~~~~~
/usr/include/KF5/KWindowSystem/kwindowsystem.h:909:10: note: declared here
#  909 |     void windowRemoved(WId id);
#      |          ^~~~~~~~~~~~~
#  491|           });
#  492|   
#  493|->         QObject::connect(KWindowSystem::self(), &KWindowSystem::windowRemoved, d->associatedWidget, [this](WId id) {
#  494|               if (d->associatedWidget->winId() == id) {
#  495|                   d->associatedWidgetPos = d->associatedWidget->pos();

Error: COMPILER_WARNING (CWE-477): [#def4]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp: scope_hint: In member function ‘bool KStatusNotifierItemPrivate::checkVisibility(QPoint, bool)’
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:692:59: warning[-Wdeprecated-declarations]: ‘static QList<long long unsigned int> KWindowSystem::stackingOrder()’ is deprecated: Since 5.101. Use KX11Extras::stackingOrder() instead
#  692 |         QListIterator<WId> it(KWindowSystem::stackingOrder());
#      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/KF5/KWindowSystem/kwindowsystem.h:115:23: note: declared here
#  115 |     static QList<WId> stackingOrder();
#      |                       ^~~~~~~~~~~~~
#  690|       } else if (QGuiApplication::platformName() == QLatin1String("xcb")) {
#  691|           const KWindowInfo info1(associatedWidget->winId(), NET::XAWMState | NET::WMState | NET::WMDesktop);
#  692|->         QListIterator<WId> it(KWindowSystem::stackingOrder());
#  693|           it.toBack();
#  694|           while (it.hasPrevious()) {

Error: COMPILER_WARNING (CWE-477): [#def5]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:734:49: warning[-Wdeprecated-declarations]: ‘static void KWindowSystem::forceActiveWindow(WId, long int)’ is deprecated: Since 5.101. Use KX11Extras::forceActiveWindow() instead
#  734 |                 KWindowSystem::forceActiveWindow(associatedWidget->winId());
#      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KWindowSystem/kwindowsystem.h:206:17: note: declared here
#  206 |     static void forceActiveWindow(WId win, long time = 0);
#      |                 ^~~~~~~~~~~~~~~~~
#  732|               if (perform) {
#  733|                   KWindowSystem::raiseWindow(associatedWidget->winId());
#  734|->                 KWindowSystem::forceActiveWindow(associatedWidget->winId());
#  735|                   Q_EMIT q->activateRequested(true, pos);
#  736|               }

Error: COMPILER_WARNING (CWE-477): [#def6]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:744:46: warning[-Wdeprecated-declarations]: ‘static void KWindowSystem::activateWindow(WId, long int)’ is deprecated: Since 5.101. Use KX11Extras::activateWindow() or KWindowSystem::activateWindow(QWindow *) instead
#  744 |                 KWindowSystem::activateWindow(associatedWidget->winId());
#      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KWindowSystem/kwindowsystem.h:158:17: note: declared here
#  158 |     static void activateWindow(WId win, long time = 0);
#      |                 ^~~~~~~~~~~~~~
#  742|           if (!info1.isOnCurrentDesktop()) {
#  743|               if (perform) {
#  744|->                 KWindowSystem::activateWindow(associatedWidget->winId());
#  745|                   Q_EMIT q->activateRequested(true, pos);
#  746|               }

Error: CLANG_WARNING: [#def7]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:821:20: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'watcher'
#  819|   
#  820|       // create a default menu, just like in KSystemtrayIcon
#  821|->     QMenu *m = new QMenu(associatedWidget);
#  822|   
#  823|       title = QGuiApplication::applicationDisplayName();

Error: COMPILER_WARNING (CWE-477): [#def8]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp: scope_hint: In member function ‘void KStatusNotifierItemPrivate::minimizeRestore(bool)’
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:1147:44: warning[-Wdeprecated-declarations]: ‘static void KWindowSystem::setOnAllDesktops(WId, bool)’ is deprecated: Since 5.101. Use KX11Extras::setOnAllDesktops() instead
# 1147 |             KWindowSystem::setOnAllDesktops(associatedWidget->winId(), true);
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KWindowSystem/kwindowsystem.h:276:17: note: declared here
#  276 |     static void setOnAllDesktops(WId win, bool b);
#      |                 ^~~~~~~~~~~~~~~~
# 1145|       if (show) {
# 1146|           if (onAllDesktops) {
# 1147|->             KWindowSystem::setOnAllDesktops(associatedWidget->winId(), true);
# 1148|           } else {
# 1149|               KWindowSystem::setCurrentDesktop(info.desktop());

Error: COMPILER_WARNING (CWE-477): [#def9]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:1149:45: warning[-Wdeprecated-declarations]: ‘static void KWindowSystem::setCurrentDesktop(int)’ is deprecated: Since 5.101. Use KX11Extras::setCurrentDesktop() instead
# 1149 |             KWindowSystem::setCurrentDesktop(info.desktop());
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/KF5/KWindowSystem/kwindowsystem.h:262:17: note: declared here
#  262 |     static void setCurrentDesktop(int desktop);
#      |                 ^~~~~~~~~~~~~~~~~
# 1147|               KWindowSystem::setOnAllDesktops(associatedWidget->winId(), true);
# 1148|           } else {
# 1149|->             KWindowSystem::setCurrentDesktop(info.desktop());
# 1150|           }
# 1151|   

Error: COMPILER_WARNING (CWE-477): [#def10]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/src/kstatusnotifieritem.cpp:1157:42: warning[-Wdeprecated-declarations]: ‘static void KWindowSystem::activateWindow(WId, long int)’ is deprecated: Since 5.101. Use KX11Extras::activateWindow() or KWindowSystem::activateWindow(QWindow *) instead
# 1157 |             KWindowSystem::activateWindow(associatedWidget->window()->winId());
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KWindowSystem/kwindowsystem.h:158:17: note: declared here
#  158 |     static void activateWindow(WId win, long time = 0);
#      |                 ^~~~~~~~~~~~~~
# 1155|           associatedWidget->raise();
# 1156|           if (associatedWidget->window()) {
# 1157|->             KWindowSystem::activateWindow(associatedWidget->window()->winId());
# 1158|           }
# 1159|       } else {

Error: CLANG_WARNING: [#def11]
kf5-knotifications-5.116.0-build/knotifications-5.116.0/tests/kstatusnotifieritemtest.cpp:117:12: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'l'
#  115|       }
#  116|   
#  117|->     return app.exec();
#  118|   }
#  119|   

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-51.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf5-knotifications-5.116.0-1.fc41
store-results-to/tmp/tmp01vuci13/kf5-knotifications-5.116.0-1.fc41.tar.xz
time-created2024-07-03 13:53:55
time-finished2024-07-03 13:55:36
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp01vuci13/kf5-knotifications-5.116.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp01vuci13/kf5-knotifications-5.116.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9