aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2022-11-15 15:14:10 +0100
committerChristian Tismer <tismer@stackless.com>2022-11-15 16:25:08 +0100
commita864736e583741c29c561459ae226a6bdf6226a8 (patch)
treee87f653252740c55460d92b448d66bd8833fcaed
parent672eb1e10a4a329514bc533d3dc4f6247fe31aec (diff)
shiboken6: Fix an unused warning on sbknumpy.cpp
Change-Id: I01feeacdc193d737fe5ca2e2e840b9c166800287 Pick-to: 6.4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--sources/shiboken6/libshiboken/sbknumpy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/libshiboken/sbknumpy.cpp b/sources/shiboken6/libshiboken/sbknumpy.cpp
index c71ee8ee4..060a2b6f4 100644
--- a/sources/shiboken6/libshiboken/sbknumpy.cpp
+++ b/sources/shiboken6/libshiboken/sbknumpy.cpp
@@ -7,6 +7,7 @@
# include <numpy/arrayobject.h>
#endif
+#include "helper.h"
#include "sbknumpycheck.h"
#include "sbkcpptonumpy.h"
#include "sbknumpyview.h"
@@ -21,6 +22,7 @@ bool check(PyObject *pyIn)
#ifdef HAVE_NUMPY
return PyArray_Check(pyIn);
#else
+ SBK_UNUSED(pyIn);
return false;
#endif
}