Skip to content

Commit a1f2004

Browse files
committed
Disable warning globally on windows
1 parent 1181089 commit a1f2004

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

graalpython/com.oracle.graal.python.cext/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ if (MSVC)
8282
/wd4774 # 'sprintf': format string expected in argument 2 is not a string literal
8383
/wd4191 # unsafe conversion from 'PyObject *(__cdecl *)(MatchObject *,PyObject *const *,Py_ssize_t)' to 'void (__cdecl *)(void)'
8484
/wd4574 # sqlite, expat: 'SQLITE_ATOMIC_INTRINSICS' is defined to be '0': did you mean to use '#if SQLITE_ATOMIC_INTRINSICS'?
85+
/wd4701 # potentially uninitialized local variable used
8586

8687
# Some that I'm not so happy about
8788
/wd4232 # sre: nonstandard extension used: 'ml_meth': address of dllimport 'Py_GenericAlias' is not static, identity not guaranteed
@@ -221,9 +222,6 @@ endfunction()
221222
add_library(${TARGET_LIBPYTHON} SHARED)
222223
native_module("_cpython_sre" TRUE "${SRC_DIR}/modules/_cpython_sre/sre.c")
223224
simple_native_module("_cpython_unicodedata")
224-
if(WIN32)
225-
target_compile_options("_cpython_unicodedata" PRIVATE /wd4701)
226-
endif()
227225
if(NOT WIN32)
228226
simple_native_module("termios")
229227
endif()

0 commit comments

Comments
 (0)