Error: COMPILER_WARNING (CWE-563): [#def1] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dbackingstoreproxy.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DBackingStoreProxy::updateWallpaperShared()’ deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dbackingstoreproxy.cpp:311:12: warning[-Wunused-variable]: unused variable ‘byte_count’ # 311 | qint32 byte_count = header[0]; # | ^~~~~~~~~~ # 309| const uchar *content = reinterpret_cast<const uchar*>(m_sharedMemory->constData()) + HEADER_SIZE; # 310| # 311|-> qint32 byte_count = header[0]; # 312| qint32 image_width = header[1]; # 313| qint32 image_height = header[2]; Error: COMPILER_WARNING (CWE-1164): [#def2] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/ddesktopinputselectioncontrol.cpp:130:12: warning[-Wunused-function]: ‘int deepin_platform_plugin::getInputRectangleY(const QPoint&)’ defined but not used # 130 | static int getInputRectangleY(const QPoint &pos) # | ^~~~~~~~~~~~~~~~~~ # 128| } # 129| # 130|-> static int getInputRectangleY(const QPoint &pos) # 131| { # 132| // 保证handle不会超出TextEdit类输入框 Error: COMPILER_WARNING (CWE-9001): [#def3] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dxcbxsettings.h:9: included_from: Included from here. deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dxcbxsettings.cpp:6: included_from: Included from here. deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dplatformsettings.h:18:7: warning[-Wattributes]: ‘deepin_platform_plugin::DPlatformSettings’ declared with greater visibility than the type of its field ‘deepin_platform_plugin::DPlatformSettings::callback_links’ # 18 | class DPlatformSettings # | ^~~~~~~~~~~~~~~~~ # 16| DPP_BEGIN_NAMESPACE # 17| # 18|-> class DPlatformSettings # 19| { # 20| public: Error: COMPILER_WARNING (CWE-9001): [#def4] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dplatformsettings.h:18:7: warning[-Wattributes]: ‘deepin_platform_plugin::DPlatformSettings’ declared with greater visibility than the type of its field ‘deepin_platform_plugin::DPlatformSettings::signal_callback_links’ # 16| DPP_BEGIN_NAMESPACE # 17| # 18|-> class DPlatformSettings # 19| { # 20| public: Error: COMPILER_WARNING (CWE-1164): [#def5] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dxcbxsettings.cpp: scope_hint: At global scope deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dxcbxsettings.cpp:51:19: warning[-Wunused-function]: ‘QByteArray atomName(xcb_connection_t*, xcb_atom_t)’ defined but not used # 51 | static QByteArray atomName(xcb_connection_t *conn, xcb_atom_t atom) # | ^~~~~~~~ # 49| } # 50| # 51|-> static QByteArray atomName(xcb_connection_t *conn, xcb_atom_t atom) # 52| { # 53| xcb_get_atom_name_cookie_t cookie = xcb_get_atom_name(conn, atom); Error: COMPILER_WARNING (CWE-665): [#def6] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dxcbxsettings.cpp:171:5: warning[-Wreorder]: when initialized here # 171 | DXcbXSettingsPrivate(xcb_connection_t *connection, const QByteArray &property, DXcbXSettings *qq) # | ^~~~~~~~~~~~~~~~~~~~ # 169| { # 170| public: # 171|-> DXcbXSettingsPrivate(xcb_connection_t *connection, const QByteArray &property, DXcbXSettings *qq) # 172| : connection(connection) # 173| , initialized(false) Error: COMPILER_WARNING (CWE-665): [#def7] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dxcbxsettings.cpp:486:20: warning[-Wreorder]: ‘deepin_platform_plugin::DXcbXSettings* deepin_platform_plugin::DXcbXSettingsPrivate::q_ptr’ # 486 | DXcbXSettings *q_ptr = nullptr; # | ^~~~~ # 484| } # 485| # 486|-> DXcbXSettings *q_ptr = nullptr; # 487| xcb_connection_t *connection; # 488| xcb_window_t x_settings_window; Error: COMPILER_WARNING (CWE-665): [#def8] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dxcbxsettings.cpp: scope_hint: In constructor ‘deepin_platform_plugin::DXcbXSettingsPrivate::DXcbXSettingsPrivate(xcb_connection_t*, const QByteArray&, deepin_platform_plugin::DXcbXSettings*)’ deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/src/dxcbxsettings.cpp:495:10: warning[-Wreorder]: ‘deepin_platform_plugin::DXcbXSettingsPrivate::initialized’ will be initialized after # 495 | bool initialized; # | ^~~~~~~~~~~ # 493| std::vector<DXcbXSettingsCallback> callback_links; # 494| std::vector<DXcbXSettingsSignalCallback> signal_callback_links; # 495|-> bool initialized; # 496| # 497| static xcb_window_t _xsettings_owner; Error: GCC_ANALYZER_WARNING (CWE-457): [#def9] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/xcb/3rdparty/dsimple.c: scope_hint: In function ‘recursive_Window_With_Name’ deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/xcb/3rdparty/dsimple.c:260:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*cookies.get_net_wm_name.sequence’ deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/xcb/3rdparty/dsimple.c:383:27: note: in expansion of macro ‘xcb_icccm_get_wm_name’ # 258| xcb_get_property_reply_t *prop; # 259| # 260|-> if (cookies->get_net_wm_name.sequence) { # 261| prop = xcb_get_property_reply(dpy, cookies->get_net_wm_name, &err); # 262| Error: COMPILER_WARNING (CWE-9001): [#def10] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/xcb/dplatformbackingstorehelper.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DPlatformBackingStoreHelper::resize(const QSize&, const QRegion&)’ deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/xcb/dplatformbackingstorehelper.cpp:165:63: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules # 165 | QXcbShmImage *shm_image = reinterpret_cast<QXcbShmImage*>(reinterpret_cast<_QXcbBackingStore*>( &bs )->m_image); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 163| #else # 164| struct _QXcbBackingStore { QImage *m_image; }; // Expose m_image # 165|-> QXcbShmImage *shm_image = reinterpret_cast<QXcbShmImage*>(reinterpret_cast<_QXcbBackingStore*>( &bs )->m_image); # 166| #endif # 167| Error: COMPILER_WARNING (CWE-1164): [#def11] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/xcb/dplatformintegration.cpp: scope_hint: At global scope deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/xcb/dplatformintegration.cpp:831:21: warning[-Wunused-function]: ‘xcb_cursor_t deepin_platform_plugin::overrideCreateFontCursor(QXcbCursor*, QCursor*, QWindow*)’ defined but not used # 831 | static xcb_cursor_t overrideCreateFontCursor(QXcbCursor *xcb_cursor, QCursor *c, QWindow *window) # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 829| } # 830| # 831|-> static xcb_cursor_t overrideCreateFontCursor(QXcbCursor *xcb_cursor, QCursor *c, QWindow *window) # 832| { # 833| const Qt::CursorShape cshape = c->shape(); Error: COMPILER_WARNING (CWE-563): [#def12] deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/xcb/dplatformintegration.cpp: scope_hint: In function ‘void deepin_platform_plugin::overrideChangeCursor(QPlatformCursor*, QCursor*, QWindow*)’ deepin-qt5platform-plugins-5.6.32-build/qt5platform-plugins-5.6.32/xcb/dplatformintegration.cpp:892:17: warning[-Wunused-but-set-variable]: variable ‘w’ set but not used # 892 | QXcbWindow *w = nullptr; # | ^ # 890| static void overrideChangeCursor(QPlatformCursor *cursorHandle, QCursor * cursor, QWindow * widget) # 891| { # 892|-> QXcbWindow *w = nullptr; # 893| if (widget && widget->handle()) # 894| w = static_cast<QXcbWindow *>(widget->handle());
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
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-135.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | deepin-qt5platform-plugins-5.6.32-3.fc42 |
store-results-to | /tmp/tmpnyndud2m/deepin-qt5platform-plugins-5.6.32-3.fc42.tar.xz |
time-created | 2024-11-12 23:33:44 |
time-finished | 2024-11-12 23:35:22 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpnyndud2m/deepin-qt5platform-plugins-5.6.32-3.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpnyndud2m/deepin-qt5platform-plugins-5.6.32-3.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |