summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/modules/IcePy/Config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/modules/IcePy/Config.h b/python/modules/IcePy/Config.h
index 8d1611c9039..cce3b7e4576 100644
--- a/python/modules/IcePy/Config.h
+++ b/python/modules/IcePy/Config.h
@@ -20,8 +20,17 @@
# undef _POSIX_C_SOURCE
#endif
+#ifdef _WIN32
+ // suppress C4100: '_unused_op': unreferenced formal parameter in Python 3.12 cpython/unicodeobject.h
+# pragma warning( disable : 4100)
+#endif
+
#include <Python.h>
+#ifdef _WIN32
+# pragma warning( default : 4100)
+#endif
+
#ifdef STRCAST
# error "STRCAST already defined!"
#endif