deepin-qt5platform-plugins-5.6.12-7.fc41
List of Defects
Error: COMPILER_WARNING (CWE-563): [#def1]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dbackingstoreproxy.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DBackingStoreProxy::updateWallpaperShared()’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dbackingstoreproxy.cpp:288:12: warning[-Wunused-variable]: unused variable ‘byte_count’
# 288 | qint32 byte_count = header[0];
# | ^~~~~~~~~~
# 286| const uchar *content = reinterpret_cast<const uchar*>(m_sharedMemory->constData()) + HEADER_SIZE;
# 287|
# 288|-> qint32 byte_count = header[0];
# 289| qint32 image_width = header[1];
# 290| qint32 image_height = header[2];
Error: CLANG_WARNING: [#def2]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dbackingstoreproxy.cpp:288:12: warning[deadcode.DeadStores]: Value stored to 'byte_count' during its initialization is never read
# 286| const uchar *content = reinterpret_cast<const uchar*>(m_sharedMemory->constData()) + HEADER_SIZE;
# 287|
# 288|-> qint32 byte_count = header[0];
# 289| qint32 image_width = header[1];
# 290| qint32 image_height = header[2];
Error: COMPILER_WARNING (CWE-1164): [#def3]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/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-477): [#def4]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dnativesettings.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DNativeSettings::init(const QMetaObject*)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dnativesettings.cpp:180:90: warning[-Wdeprecated-declarations]: ‘QSet<T> QList<T>::toSet() const [with T = QByteArray]’ is deprecated: Use QSet<T>(list.begin(), list.end()) instead.
# 180 | m_base->setProperty(ALL_KEYS, QVariant::fromValue(m_settings->settingKeys().toSet()));
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtCore/qhash.h:46: included_from: Included from here.
/usr/include/qt5/QtCore/qset.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/QSet:1: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dnativesettings.h:10: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dnativesettings.cpp:5: included_from: Included from here.
/usr/include/qt5/QtCore/qlist.h:413:13: note: declared here
# 413 | QSet<T> toSet() const;
# | ^~~~~
# 178| // 将所有属性名称设置给对象
# 179| if (allKeyPropertyTyep == qMetaTypeId<QSet<QByteArray>>()) {
# 180|-> m_base->setProperty(ALL_KEYS, QVariant::fromValue(m_settings->settingKeys().toSet()));
# 181| } else {
# 182| m_base->setProperty(ALL_KEYS, QVariant::fromValue(m_settings->settingKeys()));
Error: COMPILER_WARNING (CWE-9001): [#def5]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dxcbxsettings.h:9: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dnativesettings.cpp:7: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/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): [#def6]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/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-477): [#def7]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dselectedtexttooltip.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DSelectedTextTooltip::onFontChanged()’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dselectedtexttooltip.cpp:54:43: warning[-Wdeprecated-declarations]: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance
# 54 | int tmp_width = font_metrics.width(font_info.optName);
# | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qpainter.h:59: included_from: Included from here.
/usr/include/qt5/QtGui/QPainter:1: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dselectedtexttooltip.cpp:8: included_from: Included from here.
/usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
# 106 | int width(const QString &, int len = -1) const;
# | ^~~~~
# 52| int tooltip_width = 0;
# 53| for (auto &font_info : m_textInfoVec) {
# 54|-> int tmp_width = font_metrics.width(font_info.optName);
# 55| font_info.textWidth = tmp_width + 2 * TEXT_SPACINGWIDGET;
# 56| tooltip_width += font_info.textWidth;
Error: COMPILER_WARNING (CWE-477): [#def8]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dselectedtexttooltip.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DSelectedTextTooltip::updateColor()’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dselectedtexttooltip.cpp:67:50: warning[-Wdeprecated-declarations]: ‘const QBrush& QPalette::background() const’ is deprecated: Use QPalette::window() instead
# 67 | QColor rgb_color = qApp->palette().background().color().toRgb();
/usr/include/qt5/QtGui/QPalette:1: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dselectedtexttooltip.cpp:13: included_from: Included from here.
/usr/include/qt5/QtGui/qpalette.h:149:26: note: declared here
# 149 | inline const QBrush &background() const { return window(); }
# | ^~~~~~~~~~
# 65| {
# 66| // 参考DtkGui
# 67|-> QColor rgb_color = qApp->palette().background().color().toRgb();
# 68| float luminance = 0.299 * rgb_color.redF() + 0.587 * rgb_color.greenF() + 0.114 * rgb_color.blueF();
# 69|
Error: COMPILER_WARNING (CWE-1164): [#def9]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dxcbxsettings.cpp: scope_hint: At global scope
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dxcbxsettings.cpp:41:19: warning[-Wunused-function]: ‘QByteArray atomName(xcb_connection_t*, xcb_atom_t)’ defined but not used
# 41 | static QByteArray atomName(xcb_connection_t *conn, xcb_atom_t atom)
# | ^~~~~~~~
# 39| }
# 40|
# 41|-> static QByteArray atomName(xcb_connection_t *conn, xcb_atom_t atom)
# 42| {
# 43| xcb_get_atom_name_cookie_t cookie = xcb_get_atom_name(conn, atom);
Error: COMPILER_WARNING (CWE-665): [#def10]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dxcbxsettings.cpp:161:5: warning[-Wreorder]: when initialized here
# 161 | DXcbXSettingsPrivate(xcb_connection_t *connection, const QByteArray &property, DXcbXSettings *qq)
# | ^~~~~~~~~~~~~~~~~~~~
# 159| {
# 160| public:
# 161|-> DXcbXSettingsPrivate(xcb_connection_t *connection, const QByteArray &property, DXcbXSettings *qq)
# 162| : connection(connection)
# 163| , initialized(false)
Error: COMPILER_WARNING (CWE-477): [#def11]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dxcbxsettings.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DXcbXSettingsPrivate::init(xcb_window_t, deepin_platform_plugin::DXcbXSettings*)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dxcbxsettings.cpp:455:27: warning[-Wdeprecated-declarations]: ‘QHash<K, V>::iterator QHash<K, V>::insertMulti(const Key&, const T&) [with Key = unsigned int; T = deepin_platform_plugin::DXcbXSettings*]’ is deprecated: Use QMultiHash for hashes storing multiple values with the same key.
# 455 | mapped.insertMulti(x_settings_window, object);
# | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtCore/qvariant.h:48: included_from: Included from here.
/usr/include/qt5/QtCore/QVariant:1: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dplatformsettings.h:10: included_from: Included from here.
/usr/include/qt5/QtCore/qhash.h:1225:55: note: declared here
# 1225 | Q_OUTOFLINE_TEMPLATE typename QHash<Key, T>::iterator QHash<Key, T>::insertMulti(const Key &key, const T &value) {
# | ^~~~~~~~~~~~~
# 453| {
# 454| x_settings_window = setting_window;
# 455|-> mapped.insertMulti(x_settings_window, object);
# 456| initialized = true;
# 457|
Error: COMPILER_WARNING (CWE-665): [#def12]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/dxcbxsettings.cpp:476:20: warning[-Wreorder]: ‘deepin_platform_plugin::DXcbXSettings* deepin_platform_plugin::DXcbXSettingsPrivate::q_ptr’
# 476 | DXcbXSettings *q_ptr = nullptr;
# | ^~~~~
# 474| }
# 475|
# 476|-> DXcbXSettings *q_ptr = nullptr;
# 477| xcb_connection_t *connection;
# 478| xcb_window_t x_settings_window;
Error: COMPILER_WARNING (CWE-665): [#def13]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/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.12-build/qt5platform-plugins-5.6.12/src/dxcbxsettings.cpp:485:10: warning[-Wreorder]: ‘deepin_platform_plugin::DXcbXSettingsPrivate::initialized’ will be initialized after
# 485 | bool initialized;
# | ^~~~~~~~~~~
# 483| std::vector<DXcbXSettingsCallback> callback_links;
# 484| std::vector<DXcbXSettingsSignalCallback> signal_callback_links;
# 485|-> bool initialized;
# 486|
# 487| static xcb_window_t _xsettings_owner;
Error: COMPILER_WARNING (CWE-569): [#def14]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:98:25: warning[-Wtype-limits]: comparison of unsigned expression in ‘< 0’ is always false
# 98 | if (fun1_offset < 0 || fun1_offset > UINT_LEAST16_MAX)
# | ~~~~~~~~~~~~^~~
# 96| quintptr fun2_offset = toQuintptr(&fun2);
# 97|
# 98|-> if (fun1_offset < 0 || fun1_offset > UINT_LEAST16_MAX)
# 99| return false;
# 100|
Error: COMPILER_WARNING (CWE-569): [#def15]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:183:25: warning[-Wtype-limits]: comparison of unsigned expression in ‘< 0’ is always false
# 183 | if (fun1_offset < 0 || fun1_offset > UINT_LEAST16_MAX)
# | ~~~~~~~~~~~~^~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h: scope_hint: In instantiation of ‘static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount >= 0), bool>::type deepin_platform_plugin::VtableHook::overrideVfptrFun(quintptr*, Fun1, Fun2, bool) [with Fun1 = void (QXcbWindow::*)(const xcb_configure_notify_event_t*); Fun2 = void (*)(QXcbWindow*, const xcb_configure_notify_event_t*); typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount >= 0), bool>::type = bool; quintptr = long long unsigned int]’
#/builddir/build/BUILD/deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:253:35: required from ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(const typename QtPrivate::FunctionPointer<Func>::Object*, Fun1, Fun2) [with Fun1 = void (QXcbWindow::*)(const xcb_configure_notify_event_t*); Fun2 = void (*)(QXcbWindow*, const xcb_configure_notify_event_t*); typename QtPrivate::FunctionPointer<Func>::Object = QXcbWindow]’
# 253 | bool ok = overrideVfptrFun(getVtableOfObject(t1), fun1, fun2, false);
# | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 41 | VtableHook::overrideVfptrFun(window, &QXcbWindow::handleConfigureNotifyEvent,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 42 | &WindowEventHook::handleConfigureNotifyEvent);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 181| quintptr fun2_offset = toQuintptr(&fun2);
# 182|
# 183|-> if (fun1_offset < 0 || fun1_offset > UINT_LEAST16_MAX)
# 184| return false;
# 185|
Error: CPPCHECK_WARNING: [#def16]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/3rdparty/dsimple.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def17]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/3rdparty/dsimple.c:260:9: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 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: GCC_ANALYZER_WARNING (CWE-457): [#def18]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/3rdparty/dsimple.c: scope_hint: In function ‘recursive_Window_With_Name’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/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.12-build/qt5platform-plugins-5.6.12/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-477): [#def19]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dforeignplatformwindow_x11.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DForeignPlatformWindow::updateWindowTypes()’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dforeignplatformwindow_x11.cpp:342:36: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::WindowType; Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead
# 342 | Qt::WindowFlags window_flags = 0;
# | ^
/usr/include/qt5/QtCore/qglobal.h:1307: included_from: Included from here.
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
# 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
# | ^~~~~~
# 340| {
# 341| QXcbWindowFunctions::WmWindowTypes window_types = wmWindowTypes();
# 342|-> Qt::WindowFlags window_flags = 0;
# 343|
# 344| if (window_types & QXcbWindowFunctions::Normal)
Error: COMPILER_WARNING (CWE-563): [#def20]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dhighdpi.cpp: scope_hint: In static member function ‘static void deepin_platform_plugin::DHighDpi::onDPIChanged(xcb_connection_t*, const QByteArray&, const QVariant&, void*)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dhighdpi.cpp:150:115: warning[-Wunused-parameter]: unused parameter ‘handle’
# 150 | void DHighDpi::onDPIChanged(xcb_connection_t *connection, const QByteArray &name, const QVariant &property, void *handle)
# | ~~~~~~^~~~~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dhighdpi.cpp:6: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h: scope_hint: In instantiation of ‘static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount >= 0), bool>::type deepin_platform_plugin::VtableHook::overrideVfptrFun(quintptr*, Fun1, Fun2, bool) [with Fun1 = QPair<double, double> (QXcbScreen::*)() const; Fun2 = QPair<double, double> (*)(QXcbScreen*); typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount >= 0), bool>::type = bool; quintptr = long long unsigned int]’
#/builddir/build/BUILD/deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:272:32: required from ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(Fun1, Fun2) [with Class = QXcbScreen; Fun1 = QPair<double, double> (QXcbScreen::*)() const; Fun2 = QPair<double, double> (*)(QXcbScreen*)]’
# 272 | return overrideVfptrFun(vfptr_t1, fun1, fun2, true);
# | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 279 | return overrideVfptrFun<typename FunInfo1::Object>(fun1, fun2);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
#/builddir/build/BUILD/deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dhighdpi.cpp:82:42: required from here
# 82 | active = VtableHook::overrideVfptrFun(&QXcbScreen::logicalDpi, logicalDpi);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 148| }
# 149|
# 150|-> void DHighDpi::onDPIChanged(xcb_connection_t *connection, const QByteArray &name, const QVariant &property, void *handle)
# 151| {
# 152| static bool dynamic_dpi = qEnvironmentVariableIsSet("D_DXCB_RT_HIDPI");
Error: COMPILER_WARNING (CWE-477): [#def21]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dnotitlebarwindowhelper.cpp: scope_hint: In constructor ‘deepin_platform_plugin::DNoTitlebarWindowHelper::DNoTitlebarWindowHelper(QWindow*, quint32)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dnotitlebarwindowhelper.cpp:60:70: warning[-Wdeprecated-declarations]: ‘QTextStream& QTextStreamFunctions::hex(QTextStream&)’ is deprecated: Use Qt::hex
# 60 | qWarning() << "native settings is invalid for window: 0x" << hex << windowID;
# | ^~~
/usr/include/qt5/QtCore/qdebug.h:49: included_from: Included from here.
/usr/include/qt5/QtCore/QDebug:1: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:10: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dnotitlebarwindowhelper.cpp:6: included_from: Included from here.
/usr/include/qt5/QtCore/qtextstream.h:277:74: note: declared here
# 277 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::hex") QTextStream &hex(QTextStream &s);
# | ^~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h: scope_hint: In instantiation of ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(quintptr*, Fun1, quintptr*, Fun2, bool) [with Fun1 = bool (QWindow::*)(QEvent*); Fun2 = bool (deepin_platform_plugin::DNoTitlebarWindowHelper::*)(QEvent*); quintptr = long long unsigned int]’
#/builddir/build/BUILD/deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:131:35: required from ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(const typename QtPrivate::FunctionPointer<Func>::Object*, Fun1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Fun2) [with Fun1 = bool (QWindow::*)(QEvent*); Fun2 = bool (deepin_platform_plugin::DNoTitlebarWindowHelper::*)(QEvent*); typename QtPrivate::FunctionPointer<Func>::Object = QWindow; typename [...]
# 131 | bool ok = overrideVfptrFun(vfptr_t1, fun1, vfptr_t2, fun2, false);
# | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 377 | VtableHook::overrideVfptrFun(m_window, &QWindow::event, this, &DNoTitlebarWindowHelper::windowEvent);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 58| updateAutoInputMaskByClipPathFromProperty();
# 59| } else {
# 60|-> qWarning() << "native settings is invalid for window: 0x" << hex << windowID;
# 61| }
# 62|
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dnotitlebarwindowhelper.cpp:60:70: note: trimmed 1 message(s) with length over 512
Error: COMPILER_WARNING (CWE-477): [#def22]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformbackingstorehelper.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DPlatformBackingStoreHelper::flush(QWindow*, const QRegion&, const QPoint&)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformbackingstorehelper.cpp:133:35: warning[-Wdeprecated-declarations]: ‘void QBrush::setMatrix(const QMatrix&)’ is deprecated: Use setTransform()
# 133 | border_brush.setMatrix(QMatrix(1, 0, 0, 1, offset.x(), offset.y()));
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qpen.h:45: included_from: Included from here.
/usr/include/qt5/QtGui/qpainter.h:54: included_from: Included from here.
/usr/include/qt5/QtGui/QPainter:1: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformbackingstorehelper.cpp:19: included_from: Included from here.
/usr/include/qt5/QtGui/qbrush.h:94:48: note: declared here
# 94 | QT_DEPRECATED_X("Use setTransform()") void setMatrix(const QMatrix &mat);
# | ^~~~~~~~~
# 131| - 2 * window_helper->m_frameWindow->contentOffsetHint()) * device_pixel_ratio;
# 132|
# 133|-> border_brush.setMatrix(QMatrix(1, 0, 0, 1, offset.x(), offset.y()));
# 134|
# 135| pa.setRenderHint(QPainter::Antialiasing);
Error: COMPILER_WARNING (CWE-9001): [#def23]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformbackingstorehelper.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DPlatformBackingStoreHelper::resize(const QSize&, const QRegion&)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/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);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformbackingstorehelper.cpp:6: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h: scope_hint: In instantiation of ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(quintptr*, Fun1, quintptr*, Fun2, bool) [with Fun1 = void (QPlatformBackingStore::*)(const QRegion&); Fun2 = void (deepin_platform_plugin::DPlatformBackingStoreHelper::*)(const QRegion&); quintptr = long long unsigned int]’
#/builddir/build/BUILD/deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:131:35: required from ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(const typename QtPrivate::FunctionPointer<Func>::Object*, Fun1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Fun2) [with Fun1 = void (QPlatformBackingStore::*)(const QRegion&); Fun2 = void (deepin_platform_plugin::DPlatformBackingStoreHelper::*)(const QRegion&); typename QtPrivate::FunctionPointer<F [...]
# 131 | bool ok = overrideVfptrFun(vfptr_t1, fun1, vfptr_t2, fun2, false);
# | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 45 | VtableHook::overrideVfptrFun(store, &QPlatformBackingStore::beginPaint, this, &DPlatformBackingStoreHelper::beginPaint);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 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|
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformbackingstorehelper.cpp:165:63: note: trimmed 1 message(s) with length over 512
Error: CLANG_WARNING: [#def24]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp:196:54: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'helper'
# 194| DPlatformWindowHelper *helper = new DPlatformWindowHelper(xw);
# 195| instance()->m_storeHelper->addBackingStore(store);
# 196|-> helper->m_frameWindow->m_contentBackingStore = store;
# 197| } else {
# 198| Q_UNUSED(new DPlatformWindowHelper(xw))
Error: COMPILER_WARNING (CWE-477): [#def25]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp: scope_hint: In member function ‘virtual QPaintEngine* deepin_platform_plugin::DPlatformIntegration::createImagePaintEngine(QPaintDevice*) const’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp:464:28: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QPaintEngine::PaintEngineFeature; Zero = int QFlags<QPaintEngine::PaintEngineFeature>::Private::*]’ is deprecated: Use default constructor instead
# 464 | disable_features = 0;
# | ^
/usr/include/qt5/QtCore/qglobal.h:1307: included_from: Included from here.
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
# 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
# | ^~~~~~
# 462|
# 463| if (int(disable_features) < 0) {
# 464|-> disable_features = 0;
# 465|
# 466| QByteArray data = qgetenv("DXCB_PAINTENGINE_DISABLE_FEATURES");
Error: COMPILER_WARNING (CWE-477): [#def26]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp:476:36: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QPaintEngine::PaintEngineFeature; Zero = int QFlags<QPaintEngine::PaintEngineFeature>::Private::*]’ is deprecated: Use default constructor instead
# 476 | disable_features = 0;
# | ^
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
# 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
# | ^~~~~~
# 474| break;
# 475|
# 476|-> disable_features = 0;
# 477| }
# 478|
Error: COMPILER_WARNING (CWE-477): [#def27]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp:489:36: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = QPaintEngine::PaintEngineFeature; Zero = int QFlags<QPaintEngine::PaintEngineFeature>::Private::*]’ is deprecated: Use default constructor instead
# 489 | disable_features = 0;
# | ^
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
# 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
# | ^~~~~~
# 487|
# 488| if (!ok)
# 489|-> disable_features = 0;
# 490| } while (false);
# 491| }
Error: COMPILER_WARNING (CWE-477): [#def28]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp: scope_hint: In function ‘xcb_cursor_t deepin_platform_plugin::qt_xcb_createCursorXRender(QXcbScreen*, const QImage&, const QPoint&)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp:717:52: warning[-Wdeprecated-declarations]: ‘int QImage::byteCount() const’ is deprecated: Use sizeInBytes
# 717 | memcpy(xi->data, img.constBits(), img.byteCount());
# | ~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qimage.h:221:44: note: declared here
# 221 | QT_DEPRECATED_X("Use sizeInBytes") int byteCount() const;
# | ^~~~~~~~~
# 715| return XCB_NONE;
# 716| }
# 717|-> memcpy(xi->data, img.constBits(), img.byteCount());
# 718|
# 719| xcb_pixmap_t pix = xcb_generate_id(conn);
Error: COMPILER_WARNING (CWE-1164): [#def29]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp: scope_hint: At global scope
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp:830:21: warning[-Wunused-function]: ‘xcb_cursor_t deepin_platform_plugin::overrideCreateFontCursor(QXcbCursor*, QCursor*, QWindow*)’ defined but not used
# 830 | static xcb_cursor_t overrideCreateFontCursor(QXcbCursor *xcb_cursor, QCursor *c, QWindow *window)
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 828| }
# 829|
# 830|-> static xcb_cursor_t overrideCreateFontCursor(QXcbCursor *xcb_cursor, QCursor *c, QWindow *window)
# 831| {
# 832| const Qt::CursorShape cshape = c->shape();
Error: COMPILER_WARNING (CWE-563): [#def30]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp: scope_hint: In function ‘void deepin_platform_plugin::overrideChangeCursor(QPlatformCursor*, QCursor*, QWindow*)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp:887:17: warning[-Wunused-but-set-variable]: variable ‘w’ set but not used
# 887 | QXcbWindow *w = nullptr;
# | ^
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp:8: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h: scope_hint: In instantiation of ‘static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount >= 0), bool>::type deepin_platform_plugin::VtableHook::overrideVfptrFun(quintptr*, Fun1, Fun2, bool) [with Fun1 = void (* (QPlatformNativeInterface::*)(const QByteArray&) const)(); Fun2 = void (* (*)(QPlatformNativeInterface*, const QByteArray&))(); typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount >= 0), bool>::type = bool; quintptr = long long unsigned int]’
#/builddir/build/BUILD/deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:253:35: required from ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(const typename QtPrivate::FunctionPointer<Func>::Object*, Fun1, Fun2) [with Fun1 = void (* (QPlatformNativeInterface::*)(const QByteArray&) const)(); Fun2 = void (* (*)(QPlatformNativeInterface*, const QByteArray&))(); typename QtPrivate::FunctionPointer<Func>::Object = QPlatformNativeInterface]’
# 253 | bool ok = overrideVfptrFun(getVtableOfObject(t1), fun1, fun2, false);
# | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 102 | VtableHook::overrideVfptrFun(nativeInterface(),
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
# 103 | &QPlatformNativeInterface::platformFunction,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 104 | &DPlatformNativeInterfaceHook::platformFunction);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 885| static void overrideChangeCursor(QPlatformCursor *cursorHandle, QCursor * cursor, QWindow * widget)
# 886| {
# 887|-> QXcbWindow *w = nullptr;
# 888| if (widget && widget->handle())
# 889| w = static_cast<QXcbWindow *>(widget->handle());
Error: CLANG_WARNING: [#def31]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformintegration.cpp:889:9: warning[deadcode.DeadStores]: Value stored to 'w' is never read
# 887| QXcbWindow *w = nullptr;
# 888| if (widget && widget->handle())
# 889|-> w = static_cast<QXcbWindow *>(widget->handle());
# 890| else
# 891| // No X11 cursor control when there is no widget under the cursor
Error: COMPILER_WARNING (CWE-477): [#def32]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformopenglcontexthelper.cpp: scope_hint: In function ‘void deepin_platform_plugin::drawCornerImage(const QImage&, const QPoint&, QPainter*, const QPainterPath&, QOpenGLFunctions*)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformopenglcontexthelper.cpp:53:20: warning[-Wdeprecated-declarations]: ‘void QBrush::setMatrix(const QMatrix&)’ is deprecated: Use setTransform()
# 53 | brush.setMatrix(QMatrix(1, 0, 0, 1, -source_offset.x() - br.x(), -source_offset.y() - br.y()));
# | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qpen.h:45: included_from: Included from here.
/usr/include/qt5/QtGui/qpainter.h:54: included_from: Included from here.
/usr/include/qt5/QtGui/QPainter:1: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformopenglcontexthelper.cpp:16: included_from: Included from here.
/usr/include/qt5/QtGui/qbrush.h:94:48: note: declared here
# 94 | QT_DEPRECATED_X("Use setTransform()") void setMatrix(const QMatrix &mat);
# | ^~~~~~~~~
# 51|
# 52| tmp_image = tmp_image.mirrored();
# 53|-> brush.setMatrix(QMatrix(1, 0, 0, 1, -source_offset.x() - br.x(), -source_offset.y() - br.y()));
# 54|
# 55| QPainter pa(&tmp_image);
Error: COMPILER_WARNING (CWE-477): [#def33]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformopenglcontexthelper.cpp: scope_hint: In member function ‘void deepin_platform_plugin::DPlatformOpenGLContextHelper::swapBuffers(QPlatformSurface*)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformopenglcontexthelper.cpp:99:35: warning[-Wdeprecated-declarations]: ‘void QBrush::setMatrix(const QMatrix&)’ is deprecated: Use setTransform()
# 99 | border_brush.setMatrix(QMatrix(1, 0, 0, 1, -content_rect.x(), -content_rect.y()));
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt5/QtGui/qbrush.h:94:48: note: declared here
# 94 | QT_DEPRECATED_X("Use setTransform()") void setMatrix(const QMatrix &mat);
# | ^~~~~~~~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformopenglcontexthelper.cpp:6: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h: scope_hint: In instantiation of ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(quintptr*, Fun1, quintptr*, Fun2, bool) [with Fun1 = void (QPlatformOpenGLContext::*)(QPlatformSurface*); Fun2 = void (deepin_platform_plugin::DPlatformOpenGLContextHelper::*)(QPlatformSurface*); quintptr = long long unsigned int]’
#/builddir/build/BUILD/deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:131:35: required from ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(const typename QtPrivate::FunctionPointer<Func>::Object*, Fun1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Fun2) [with Fun1 = void (QPlatformOpenGLContext::*)(QPlatformSurface*); Fun2 = void (deepin_platform_plugin::DPlatformOpenGLContextHelper::*)(QPlatformSurface*); typename QtPrivate::FunctionP [...]
# 131 | bool ok = overrideVfptrFun(vfptr_t1, fun1, vfptr_t2, fun2, false);
# | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 32 | return VtableHook::overrideVfptrFun(context, &QPlatformOpenGLContext::swapBuffers, this, &DPlatformOpenGLContextHelper::swapBuffers);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 97| QBrush border_brush(window_helper->m_frameWindow->platformBackingStore->toImage());
# 98|
# 99|-> border_brush.setMatrix(QMatrix(1, 0, 0, 1, -content_rect.x(), -content_rect.y()));
# 100|
# 101| pa_device.fillPath(path, border_brush);
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/dplatformopenglcontexthelper.cpp:99:35: note: trimmed 1 message(s) with length over 512
Error: COMPILER_WARNING (CWE-477): [#def34]
/usr/include/qt5/QtGui/qtguiglobal.h:43: included_from: Included from here.
/usr/include/qt5/QtGui/qimage.h:43: included_from: Included from here.
/usr/include/qt5/QtGui/QImage:1: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility.h:8: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:5: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility.h: scope_hint: In function ‘QRegion operator*(const QRegion&, qreal)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility.h:197:50: warning[-Wdeprecated-declarations]: ‘QVector<QRect> QRegion::rects() const’ is deprecated: Use begin()/end() instead
# 197 | foreach (const QRect &rect, pointRegion.rects()) {
# | ~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtCore/qglobal.h:1128:51: note: in definition of macro ‘Q_FOREACH_IMPL’
# 1128 | for (auto name = QtPrivate::qMakeForeachContainer(container); \
# | ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:1142:21: note: in expansion of macro ‘Q_FOREACH’
# 1142 | # define foreach Q_FOREACH
# | ^~~~~~~~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility.h:197:5: note: in expansion of macro ‘foreach’
# 197 | foreach (const QRect &rect, pointRegion.rects()) {
# | ^~~~~~~
/usr/include/qt5/QtGui/qmatrix.h:45: included_from: Included from here.
/usr/include/qt5/QtGui/qtransform.h:43: included_from: Included from here.
/usr/include/qt5/QtGui/qimage.h:48: included_from: Included from here.
/usr/include/qt5/QtGui/qregion.h:125:20: note: declared here
# 125 | QVector<QRect> rects() const;
# | ^~~~~
# 195|
# 196| QRegion pixelRegon;
# 197|-> foreach (const QRect &rect, pointRegion.rects()) {
# 198| pixelRegon += rect * scale;
# 199| }
Error: COMPILER_WARNING (CWE-477): [#def35]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp: scope_hint: In function ‘QVector<xcb_rectangle_t> deepin_platform_plugin::qregion2XcbRectangles(const QRegion&)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:237:42: warning[-Wdeprecated-declarations]: ‘QVector<QRect> QRegion::rects() const’ is deprecated: Use begin()/end() instead
# 237 | for (const QRect &rect : region.rects()) {
# | ~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qregion.h:125:20: note: declared here
# 125 | QVector<QRect> rects() const;
# | ^~~~~
# 235| rectangles.reserve(region.rectCount());
# 236|
# 237|-> for (const QRect &rect : region.rects()) {
# 238| xcb_rectangle_t r;
# 239|
Error: COMPILER_WARNING (CWE-477): [#def36]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp: scope_hint: In static member function ‘static void deepin_platform_plugin::Utility::setShapePath(quint32, const QPainterPath&, bool, bool)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:289:70: warning[-Wdeprecated-declarations]: ‘QVector<QRect> QRegion::rects() const’ is deprecated: Use begin()/end() instead
# 289 | foreach(const QRect &area, QRegion(polygon.toPolygon()).rects()) {
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtCore/qglobal.h:1128:51: note: in definition of macro ‘Q_FOREACH_IMPL’
# 1128 | for (auto name = QtPrivate::qMakeForeachContainer(container); \
# | ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:1142:21: note: in expansion of macro ‘Q_FOREACH’
# 1142 | # define foreach Q_FOREACH
# | ^~~~~~~~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:289:9: note: in expansion of macro ‘foreach’
# 289 | foreach(const QRect &area, QRegion(polygon.toPolygon()).rects()) {
# | ^~~~~~~
/usr/include/qt5/QtGui/qregion.h:125:20: note: declared here
# 125 | QVector<QRect> rects() const;
# | ^~~~~
# 287|
# 288| foreach(const QPolygonF &polygon, path.toFillPolygons()) {
# 289|-> foreach(const QRect &area, QRegion(polygon.toPolygon()).rects()) {
# 290| xcb_rectangle_t rectangle;
# 291|
Error: COMPILER_WARNING (CWE-477): [#def37]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp: scope_hint: In static member function ‘static QRegion deepin_platform_plugin::Utility::regionAddMargins(const QRegion&, const QMargins&, const QPoint&)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:406:42: warning[-Wdeprecated-declarations]: ‘QVector<QRect> QRegion::rects() const’ is deprecated: Use begin()/end() instead
# 406 | for (const QRect &rect : region.rects()) {
# | ~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qregion.h:125:20: note: declared here
# 125 | QVector<QRect> rects() const;
# | ^~~~~
# 404| QRegion tmp;
# 405|
# 406|-> for (const QRect &rect : region.rects()) {
# 407| tmp += rect.translated(offset) + margins;
# 408| }
Error: COMPILER_WARNING (CWE-477): [#def38]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp: scope_hint: In static member function ‘static bool deepin_platform_plugin::Utility::blurWindowBackground(quint32, const QVector<BlurArea>&)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:559:82: warning[-Wdeprecated-declarations]: ‘QVector<QRect> QRegion::rects() const’ is deprecated: Use begin()/end() instead
# 559 | foreach(const QRect &area, QRegion(polygon.toPolygon()).rects()) {
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtCore/qglobal.h:1128:51: note: in definition of macro ‘Q_FOREACH_IMPL’
# 1128 | for (auto name = QtPrivate::qMakeForeachContainer(container); \
# | ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:1142:21: note: in expansion of macro ‘Q_FOREACH’
# 1142 | # define foreach Q_FOREACH
# | ^~~~~~~~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:559:21: note: in expansion of macro ‘foreach’
# 559 | foreach(const QRect &area, QRegion(polygon.toPolygon()).rects()) {
# | ^~~~~~~
/usr/include/qt5/QtGui/qregion.h:125:20: note: declared here
# 125 | QVector<QRect> rects() const;
# | ^~~~~
# 557|
# 558| foreach(const QPolygonF &polygon, path.toFillPolygons()) {
# 559|-> foreach(const QRect &area, QRegion(polygon.toPolygon()).rects()) {
# 560| rects << area.x() << area.y() << area.width() << area.height();
# 561| }
Error: COMPILER_WARNING (CWE-477): [#def39]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp: scope_hint: In static member function ‘static bool deepin_platform_plugin::Utility::blurWindowBackgroundByPaths(quint32, const QList<QPainterPath>&)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:613:78: warning[-Wdeprecated-declarations]: ‘QVector<QRect> QRegion::rects() const’ is deprecated: Use begin()/end() instead
# 613 | foreach(const QRect &area, QRegion(polygon.toPolygon()).rects()) {
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtCore/qglobal.h:1128:51: note: in definition of macro ‘Q_FOREACH_IMPL’
# 1128 | for (auto name = QtPrivate::qMakeForeachContainer(container); \
# | ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:1142:21: note: in expansion of macro ‘Q_FOREACH’
# 1142 | # define foreach Q_FOREACH
# | ^~~~~~~~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:613:17: note: in expansion of macro ‘foreach’
# 613 | foreach(const QRect &area, QRegion(polygon.toPolygon()).rects()) {
# | ^~~~~~~
/usr/include/qt5/QtGui/qregion.h:125:20: note: declared here
# 125 | QVector<QRect> rects() const;
# | ^~~~~
# 611| foreach (const QPainterPath &path, paths) {
# 612| foreach(const QPolygonF &polygon, path.toFillPolygons()) {
# 613|-> foreach(const QRect &area, QRegion(polygon.toPolygon()).rects()) {
# 614| rects << area.x() << area.y() << area.width() << area.height();
# 615| }
Error: COMPILER_WARNING (CWE-477): [#def40]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp: scope_hint: In static member function ‘static bool deepin_platform_plugin::Utility::blurWindowBackgroundByImage(quint32, const QRect&, const QImage&)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:636:98: warning[-Wdeprecated-declarations]: ‘int QImage::byteCount() const’ is deprecated: Use sizeInBytes
# 636 | array.reserve(area.size() * sizeof(qint32) / sizeof(char) * area.size() + maskImage.byteCount());
# | ~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qimage.h:221:44: note: declared here
# 221 | QT_DEPRECATED_X("Use sizeInBytes") int byteCount() const;
# | ^~~~~~~~~
# 634| area << blurRect.x() << blurRect.y() << blurRect.width() << blurRect.height() << maskImage.bytesPerLine();
# 635|
# 636|-> array.reserve(area.size() * sizeof(qint32) / sizeof(char) * area.size() + maskImage.byteCount());
# 637| array.append((const char*)area.constData(), sizeof(qint32) / sizeof(char) * area.size());
# 638| array.append((const char*)maskImage.constBits(), maskImage.byteCount());
Error: COMPILER_WARNING (CWE-477): [#def41]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/utility_x11.cpp:638:73: warning[-Wdeprecated-declarations]: ‘int QImage::byteCount() const’ is deprecated: Use sizeInBytes
# 638 | array.append((const char*)maskImage.constBits(), maskImage.byteCount());
# | ~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt5/QtGui/qimage.h:221:44: note: declared here
# 221 | QT_DEPRECATED_X("Use sizeInBytes") int byteCount() const;
# | ^~~~~~~~~
# 636| array.reserve(area.size() * sizeof(qint32) / sizeof(char) * area.size() + maskImage.byteCount());
# 637| array.append((const char*)area.constData(), sizeof(qint32) / sizeof(char) * area.size());
# 638|-> array.append((const char*)maskImage.constBits(), maskImage.byteCount());
# 639|
# 640| clearWindowProperty(WId, DXcbWMSupport::instance()->_net_wm_deepin_blur_region_rounded_atom);
Error: CLANG_WARNING: [#def42]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/windoweventhook.cpp:336:13: warning[deadcode.DeadStores]: Value stored to 'w' is never read
# 334| if (DFrameWindow *frame = qobject_cast<DFrameWindow*>(w)) {
# 335| if (frame->m_contentWindow)
# 336|-> w = frame->m_contentWindow;
# 337| else
# 338| return;
Error: COMPILER_WARNING (CWE-477): [#def43]
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/windoweventhook.cpp: scope_hint: In function ‘Qt::KeyboardModifiers deepin_platform_plugin::translateModifiers(const QXcbKeyboard::_mod_masks&, int)’
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/windoweventhook.cpp:382:33: warning[-Wdeprecated-declarations]: ‘constexpr QFlags<T>::QFlags(Zero) [with Enum = Qt::KeyboardModifier; Zero = int QFlags<Qt::KeyboardModifier>::Private::*]’ is deprecated: Use default constructor instead
# 382 | Qt::KeyboardModifiers ret = 0;
# | ^
/usr/include/qt5/QtCore/qglobal.h:1307: included_from: Included from here.
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
# 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
# | ^~~~~~
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/xcb/windoweventhook.cpp:6: included_from: Included from here.
deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h: scope_hint: In instantiation of ‘static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount >= 0), bool>::type deepin_platform_plugin::VtableHook::overrideVfptrFun(quintptr*, Fun1, Fun2, bool) [with Fun1 = void (QXcbWindow::*)(const xcb_map_notify_event_t*); Fun2 = void (*)(QXcbWindow*, const xcb_map_notify_event_t*); typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount >= 0), bool>::type = bool; quintptr = long long unsigned int]’
#/builddir/build/BUILD/deepin-qt5platform-plugins-5.6.12-build/qt5platform-plugins-5.6.12/src/vtablehook.h:253:35: required from ‘static bool deepin_platform_plugin::VtableHook::overrideVfptrFun(const typename QtPrivate::FunctionPointer<Func>::Object*, Fun1, Fun2) [with Fun1 = void (QXcbWindow::*)(const xcb_map_notify_event_t*); Fun2 = void (*)(QXcbWindow*, const xcb_map_notify_event_t*); typename QtPrivate::FunctionPointer<Func>::Object = QXcbWindow]’
# 253 | bool ok = overrideVfptrFun(getVtableOfObject(t1), fun1, fun2, false);
# | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 37 | VtableHook::overrideVfptrFun(window, &QXcbWindow::handleMapNotifyEvent,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 38 | &WindowEventHook::handleMapNotifyEvent);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 380| static Qt::KeyboardModifiers translateModifiers(const QXcbKeyboard::_mod_masks &rmod_masks, int s)
# 381| {
# 382|-> Qt::KeyboardModifiers ret = 0;
# 383| if (s & XCB_MOD_MASK_SHIFT)
# 384| ret |= Qt::ShiftModifier;
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-157.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | deepin-qt5platform-plugins-5.6.12-7.fc41 |
store-results-to | /tmp/tmpi95o_efl/deepin-qt5platform-plugins-5.6.12-7.fc41.tar.xz |
time-created | 2024-07-03 12:19:59 |
time-finished | 2024-07-03 12:21:43 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpi95o_efl/deepin-qt5platform-plugins-5.6.12-7.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpi95o_efl/deepin-qt5platform-plugins-5.6.12-7.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |