From f5c52dcb84fcceba4bfdd641fdb0d9b89c849253 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 23 Sep 2021 19:02:15 +0200 Subject: [PATCH] Gui: [skip ci] fix possible warning --- src/Gui/PythonWrapper.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Gui/PythonWrapper.cpp b/src/Gui/PythonWrapper.cpp index 16c39ae148..e7091a6ef0 100644 --- a/src/Gui/PythonWrapper.cpp +++ b/src/Gui/PythonWrapper.cpp @@ -25,11 +25,11 @@ #ifndef _PreComp_ # include # include +# include +# include +# include #endif #include -#include -#include -#include // Uncomment this block to remove PySide C++ support and switch to its Python interface //#undef HAVE_SHIBOKEN @@ -427,6 +427,8 @@ Py::Object PythonWrapper::fromQDir(const QDir& dir) const_cast(&dir), false, false, typeName); if (pyobj) return Py::asObject(pyobj); +#else + Q_UNUSED(dir) #endif throw Py::RuntimeError("Failed to wrap icon"); }