https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ed909ba9d919f88c9a6ddf042e4154b6854f488b

commit ed909ba9d919f88c9a6ddf042e4154b6854f488b
Author:     Serge Gautherie <[email protected]>
AuthorDate: Mon Jan 27 18:02:11 2020 +0100
Commit:     Mark Jansen <[email protected]>
CommitDate: Sun Feb 23 17:50:58 2020 +0100

    [MSVCRT_WINETEST] Re-enable MSVC warning C4477
    
    Follow-up to ce2df64a06314c95713b48b90f59f023d51b89d5.
    
    Also, remove '-Wno-format' for other compilers.
---
 modules/rostests/winetests/msvcrt/CMakeLists.txt | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/modules/rostests/winetests/msvcrt/CMakeLists.txt 
b/modules/rostests/winetests/msvcrt/CMakeLists.txt
index 52585225f21..f69446b084c 100644
--- a/modules/rostests/winetests/msvcrt/CMakeLists.txt
+++ b/modules/rostests/winetests/msvcrt/CMakeLists.txt
@@ -4,11 +4,6 @@ add_definitions(
     -D_CRT_NONSTDC_NO_DEPRECATE
     -D__msvcrt_ulong=ULONG)
 
-if(MSVC)
-    # Disable warning C4477 (printf format warnings)
-    add_compile_flags("/wd4477")
-endif()
-
 if(GCC AND GCC_VERSION VERSION_GREATER 7)
     add_compile_flags("-Wno-stringop-truncation")
 endif()
@@ -32,10 +27,6 @@ list(APPEND SOURCE
 
 add_executable(msvcrt_winetest ${SOURCE} testlist.c)
 
-if(USE_CLANG_CL OR (NOT MSVC))
-    add_target_compile_flags(msvcrt_winetest "-Wno-format")
-endif()
-
 set_module_type(msvcrt_winetest win32cui)
 add_importlibs(msvcrt_winetest advapi32 msvcrt kernel32)
 

Reply via email to