summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorAmir Masoud Abdol <amir.abdol@qt.io>2023-04-13 13:02:08 +0200
committerAmir Masoud Abdol <amir.abdol@qt.io>2023-04-14 18:34:05 +0200
commit38d56e2b72f61c662d79b8aad9dff4f4f1a0211a (patch)
tree3dcf21999b564ae8eb1679a64b8298f12b76484f /src/widgets
parent76075aa3a96c05afd2f6877af5b612adec325bb2 (diff)
Add [[maybe_unused]] attribute to an unused variable
Otherwise, it could break the unity build. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: Ic1b3ac51b8a9e8bb93a3b1a4d6717fa45099e91b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/kernel/qgesturemanager_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widgets/kernel/qgesturemanager_p.h b/src/widgets/kernel/qgesturemanager_p.h
index 1bf1358b13..32f1c2aba3 100644
--- a/src/widgets/kernel/qgesturemanager_p.h
+++ b/src/widgets/kernel/qgesturemanager_p.h
@@ -64,13 +64,16 @@ private:
QSet<QGesture *> m_activeGestures;
QSet<QGesture *> m_maybeGestures;
- enum State {
+ QT_WARNING_PUSH
+ QT_WARNING_DISABLE_GCC("-Wattributes")
+ [[maybe_unused]] enum State {
Gesture,
NotGesture,
MaybeGesture // this means timers are up and waiting for some
// more events, and input events are handled by
// gesture recognizer explicitly
} state;
+ QT_WARNING_POP
struct ObjectGesture
{