Task #1495 - kf6-kwindowsystem-6.0.0-1.fc40/scan-results.err

back to task #1495
download
Error: COMPILER_WARNING:
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/redhat-linux-build/src/platforms/wayland/qwayland-wayland.h:180:14: warning[-Wodr]: type ‘QtWayland::wl_shm::format’ violates the C++ One Definition Rule
#  180 |         enum format {
#      |              ^
/usr/include/qt6/QtWaylandClient/6.7.1/QtWaylandClient/private/qwayland-wayland.h:191:14: note: an enum with different number of values is defined in another translation unit
#  191 |         enum format {
#      |              ^
#  178|           };
#  179|   
#  180|->         enum format {
#  181|               format_argb8888 = 0, // 32-bit ARGB format, [31:0] A:R:G:B 8:8:8:8 little endian
#  182|               format_xrgb8888 = 1, // 32-bit RGB format, [31:0] x:R:G:B 8:8:8:8 little endian

Error: COMPILER_WARNING:
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/redhat-linux-build/src/platforms/wayland/wayland-wayland-client-protocol.h:1503:6: warning[-Wodr]: type ‘wl_shm_format’ violates the C++ One Definition Rule
# 1503 | enum wl_shm_format {
#      |      ^
/usr/include/qt6/QtWaylandClient/6.7.1/QtWaylandClient/private/wayland-wayland-client-protocol.h:1469:6: note: an enum with different number of values is defined in another translation unit
# 1469 | enum wl_shm_format {
#      |      ^
# 1501|    * extension, pre-multiplied alpha is used for pixel values.
# 1502|    */
# 1503|-> enum wl_shm_format {
# 1504|   	/**
# 1505|   	 * 32-bit ARGB format, [31:0] A:R:G:B 8:8:8:8 little endian

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

Error: COMPILER_WARNING (CWE-477):
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/src/kkeyserver.cpp:1330:43: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
# 1330 |         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {
#      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
# 1328|           if (sym == XKeycodeToKeysym(QX11Info::display(), code, 0)) {
# 1329|               ;
# 1330|->         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {
# 1331|               mod = Qt::SHIFT;
# 1332|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {

Error: COMPILER_WARNING (CWE-477):
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/src/kkeyserver.cpp:1332:43: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
# 1332 |         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {
#      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
# 1330|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {
# 1331|               mod = Qt::SHIFT;
# 1332|->         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {
# 1333|               mod = MODE_SWITCH;
# 1334|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 3)) {

Error: COMPILER_WARNING (CWE-477):
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/src/kkeyserver.cpp:1334:43: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
# 1334 |         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 3)) {
#      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
# 1332|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {
# 1333|               mod = MODE_SWITCH;
# 1334|->         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 3)) {
# 1335|               mod = Qt::SHIFT | MODE_SWITCH;
# 1336|           }

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

Error: CLANG_WARNING:
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/src/kx11extras.cpp:530:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  528|               QMetaObject::invokeMethod(&instantiator, "createNETEventFilter", Qt::BlockingQueuedConnection, Q_RETURN_ARG(NETEventFilter *, filter));
#  529|           }
#  530|->         d.reset(filter);
#  531|           d->activate();
#  532|           if (wasCompositing != s_d_func()->compositingEnabled) {

Error: CLANG_WARNING:
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/src/kx11extras.cpp:988:24: warning[cplusplus.NewDelete]: Use of memory after it is freed
#  986|   
#  987|       bool isDesktopSane = (desktop > 0 && desktop <= (int)s_d->numberOfDesktops());
#  988|->     const char *name = s_d->desktopName(isDesktopSane ? desktop : currentDesktop());
#  989|   
#  990|       if (name && name[0]) {

Error: COMPILER_WARNING:
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/src/platforms/xcb/netwm.cpp: scope_hint: In member function ‘update’
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/src/platforms/xcb/netwm.cpp:2009:58: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 2009 |             p->clients = new xcb_window_t[clients.count()];
#      |                                                          ^
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
# 2007|           if (!clients.isEmpty()) {
# 2008|               p->clients_count = clients.count();
# 2009|->             p->clients = new xcb_window_t[clients.count()];
# 2010|               for (int i = 0; i < clients.count(); i++) {
# 2011|                   p->clients[i] = clients.at(i);

Error: COMPILER_WARNING:
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/src/platforms/xcb/netwm.cpp:2038:56: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 2038 |             p->stacking = new xcb_window_t[wins.count()];
#      |                                                        ^
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
# 2036|           if (!wins.isEmpty()) {
# 2037|               p->stacking_count = wins.count();
# 2038|->             p->stacking = new xcb_window_t[wins.count()];
# 2039|               for (int i = 0; i < wins.count(); i++) {
# 2040|                   p->stacking[i] = wins.at(i);

Error: COMPILER_WARNING:
kf6-kwindowsystem-6.0.0-build/kwindowsystem-6.0.0/src/platforms/xcb/netwm.cpp:2171:61: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 2171 |             p->virtual_roots = new xcb_window_t[wins.count()];
#      |                                                             ^
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
# 2169|           if (!wins.isEmpty()) {
# 2170|               p->virtual_roots_count = wins.count();
# 2171|->             p->virtual_roots = new xcb_window_t[wins.count()];
# 2172|               for (int i = 0; i < wins.count(); i++) {
# 2173|                   p->virtual_roots[i] = wins.at(i);