diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2023-08-17 18:20:30 +0200 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2023-08-21 14:10:04 +0200 |
commit | 5cdd7fa66203808e3adcf48386fa0aea0d525889 (patch) | |
tree | 3a8b36ad102db60c810ce0639beb29194c6d1c7f /src/quick/scenegraph/coreapi/qsgnode.h | |
parent | a7d32469d4cf452b8d1daae8a962a48ebc06a0f9 (diff) |
Use Q_DECL_UNUSED_MEMBER for unused private class members
Unlike plain [[maybe_unused]], this macro does not generate new
warnings, so we do not need the QT_WARNING_{PUSH,POP} magic.
This commit replaces 32b49e1a3889f825a88b18b00eca045d5758f12a.
Found during Qt 6.6 API review, but picking down to 6.5, as the
original change was picked to 6.5 as well.
Pick-to: 6.6 6.5
Change-Id: I0355eb1266338aefeb0e800bb41eda5c67461295
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgnode.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgnode.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgnode.h b/src/quick/scenegraph/coreapi/qsgnode.h index 4655c6bd1d..50dc6021ea 100644 --- a/src/quick/scenegraph/coreapi/qsgnode.h +++ b/src/quick/scenegraph/coreapi/qsgnode.h @@ -175,11 +175,8 @@ private: QSGGeometry *m_geometry; - QT_WARNING_PUSH - QT_WARNING_DISABLE_GCC("-Wattributes") - [[maybe_unused]] int m_reserved_start_index; - [[maybe_unused]] int m_reserved_end_index; - QT_WARNING_POP + Q_DECL_UNUSED_MEMBER int m_reserved_start_index; + Q_DECL_UNUSED_MEMBER int m_reserved_end_index; const QMatrix4x4 *m_matrix; const QSGClipNode *m_clip_list; |