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 +#ifdef _WIN32 +# pragma warning( default : 4100) +#endif + #ifdef STRCAST # error "STRCAST already defined!" #endif