aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-06-13 16:08:32 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-06-13 16:41:42 +0200
commitbc311d1eca86ea237d8822fe22837db7c3f46ee9 (patch)
tree330a425d56cf5ba45098d8956c5584d00c12fa35
parent538593a7d4e4f2a626f4c8ff52fd17dae10029be (diff)
Fix unused variable warning
Amends 8f85f155651e36ba05c3485a2c627efb9c3ddd2c Change-Id: Ieecdb26aadb2394b4a09246557ed27c791b0704e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--sources/shiboken6/libshiboken/sbkenum.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken6/libshiboken/sbkenum.cpp b/sources/shiboken6/libshiboken/sbkenum.cpp
index 8095ab703..8f3548ca5 100644
--- a/sources/shiboken6/libshiboken/sbkenum.cpp
+++ b/sources/shiboken6/libshiboken/sbkenum.cpp
@@ -792,9 +792,9 @@ static PyTypeObject * newTypeWithNameOld(const char *name,
// PySIDE-1735: This function is in the API and should be removed in 6.4 .
// Python enums are created differently.
-PyTypeObject *newTypeWithName(const char *name,
- const char *cppName,
- PyTypeObject *numbers_fromFlag)
+PyTypeObject *newTypeWithName([[maybe_unused]] const char *name,
+ [[maybe_unused]] const char *cppName,
+ [[maybe_unused]] PyTypeObject *numbers_fromFlag)
{
// old enums are gone, remove completely?
PyErr_Format(PyExc_RuntimeError, "function `%s` can no longer be used because old "