summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2023-11-01 15:41:00 +0100
committerJose <jose@zeroc.com>2023-11-01 15:42:12 +0100
commit03b1b64525e97bc4ef5b13051b1b865e8af0da0f (patch)
tree9d5e31561c7f1a63e3a01f74273fabe1a6e47564
parentFix Application::print to correctly display load balancing policy (#1568) (diff)
downloadice-3.7.10-rc1.tar.bz2
ice-3.7.10-rc1.tar.xz
ice-3.7.10-rc1.zip
Fix build failure building with Python 3.12 on Windowsv3.7.10-rc1
-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