kf5-kwindowsystem-5.116.0-1.fc41

List of Defects

Error: COMPILER_WARNING: [#def1]
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/kstartupinfo.cpp:204:2: warning: #warning before C++23 is a GCC extension
#  204 | #warning "systemTrayWindowAdded signal was remove from KWindowSystem class"
#      |  ^~~~~~~
#  202|               QObject::connect(KWindowSystem::self(), SIGNAL(windowAdded(WId)), q, SLOT(slot_window_added(WId)));
#  203|   #ifdef __GNUC__
#  204|-> #warning "systemTrayWindowAdded signal was remove from KWindowSystem class"
#  205|   #endif
#  206|               // QObject::connect( KWindowSystem::self(), SIGNAL(systemTrayWindowAdded(WId)), q, SLOT(slot_window_added(WId)));

Error: COMPILER_WARNING: [#def2]
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/kstartupinfo.cpp:204:2: warning[-Wcpp]: #warning "systemTrayWindowAdded signal was remove from KWindowSystem class"
#  202|               QObject::connect(KWindowSystem::self(), SIGNAL(windowAdded(WId)), q, SLOT(slot_window_added(WId)));
#  203|   #ifdef __GNUC__
#  204|-> #warning "systemTrayWindowAdded signal was remove from KWindowSystem class"
#  205|   #endif
#  206|               // QObject::connect( KWindowSystem::self(), SIGNAL(systemTrayWindowAdded(WId)), q, SLOT(slot_window_added(WId)));

Error: COMPILER_WARNING (CWE-477): [#def3]
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kkeyserver.cpp: scope_hint: In function ‘uint KKeyServer::getModsRequired(uint)’
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kkeyserver.cpp:734:36: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
#  734 |         if (sym == XKeycodeToKeysym(QX11Info::display(), code, 0)) {
#      |                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kkeyserver_x11.h:13: included_from: Included from here.
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/kkeyserver.h:19: included_from: Included from here.
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kkeyserver.cpp:10: included_from: Included from here.
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
#  732|           //  can take precedence over the others, in case the modified
#  733|           //  key produces the same symbol.
#  734|->         if (sym == XKeycodeToKeysym(QX11Info::display(), code, 0)) {
#  735|               ;
#  736|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {

Error: COMPILER_WARNING (CWE-477): [#def4]
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kkeyserver.cpp:736:43: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
#  736 |         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {
#      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
#  734|           if (sym == XKeycodeToKeysym(QX11Info::display(), code, 0)) {
#  735|               ;
#  736|->         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {
#  737|               mod = Qt::SHIFT;
#  738|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {

Error: COMPILER_WARNING (CWE-477): [#def5]
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kkeyserver.cpp:738:43: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
#  738 |         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {
#      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
#  736|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {
#  737|               mod = Qt::SHIFT;
#  738|->         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {
#  739|               mod = MODE_SWITCH;
#  740|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 3)) {

Error: COMPILER_WARNING (CWE-477): [#def6]
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kkeyserver.cpp:740:43: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
#  740 |         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 3)) {
#      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
#  738|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {
#  739|               mod = MODE_SWITCH;
#  740|->         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 3)) {
#  741|               mod = Qt::SHIFT | MODE_SWITCH;
#  742|           }

Error: COMPILER_WARNING (CWE-477): [#def7]
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kkeyserver.cpp: scope_hint: In function ‘bool KKeyServer::xEventToQt(XEvent*, int*)’
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kkeyserver.cpp:932:36: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
#  932 |         uint sym = XKeycodeToKeysym(QX11Info::display(), keyCodeX, 0);
#      |                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
#  930|       //  e.g., KP_4 => Shift+KP_Left, and Shift+KP_4 => KP_Left.
#  931|       if (e->xkey.state & modXNumLock()) {
#  932|->         uint sym = XKeycodeToKeysym(QX11Info::display(), keyCodeX, 0);
#  933|           // TODO: what's the xor operator in c++?
#  934|           // If this is a keypad key,

Error: CLANG_WARNING: [#def8]
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/src/platforms/xcb/kwindowsystem.cpp:1084:9: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 1082|   
# 1083|       if (s_d) {
# 1084|->         s_d->setDesktopName(desktop, name.toUtf8().constData());
# 1085|           return;
# 1086|       }

Error: CLANG_WARNING: [#def9]
kf5-kwindowsystem-5.116.0-build/kwindowsystem-5.116.0/tests/icontest.cpp:41:16: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'vbox'
#   39|       }
#   40|       if (!ok) {
#   41|->         return 1;
#   42|       }
#   43|       NETWinInfo info(QX11Info::connection(), id, QX11Info::appRootWindow(), NET::WMIcon, NET::WM2WindowClass | NET::WM2IconPixmap);

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