aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-05-15 10:58:31 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-05-15 13:09:25 +0000
commit2eae4e99eb98f7b50ebe6e38ec005dd64635b3b0 (patch)
tree39c09b8c77b043c335e526f8f017b1cf0be5f265
parenta57405a64b5a64104610080218d4311197df0cd1 (diff)
Revert "shiboken tests: Fix warning about a potentially unused field"
This reverts commit c51c97d2ae6016ef86665b593b8c3e6568161eef. It causes warnings with g++: oddbool.h:101:26: warning: maybe_unused attribute ignored [-Wattributes] Change-Id: I23c5aee9b228de304a86c51252d70e23c3eb29e9 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit c49da0d27d1c50d393940b5043f2283f931d4b4b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--sources/shiboken6/tests/libsample/oddbool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/tests/libsample/oddbool.h b/sources/shiboken6/tests/libsample/oddbool.h
index bb617b826..1d6524443 100644
--- a/sources/shiboken6/tests/libsample/oddbool.h
+++ b/sources/shiboken6/tests/libsample/oddbool.h
@@ -98,7 +98,7 @@ public:
#endif // C++ 20
private:
- [[maybe_unused]] int m_value;
+ int m_value;
};
#endif // ODDBOOL_H