OSDN Git Service

Treat use of undeclared functions as error
authorStarg <starg@users.osdn.me>
Thu, 8 Mar 2018 10:53:58 +0000 (19:53 +0900)
committerStarg <starg@users.osdn.me>
Thu, 8 Mar 2018 10:53:58 +0000 (19:53 +0900)
CMakeLists.txt

index 3f6918f..58fab11 100644 (file)
@@ -127,6 +127,7 @@ endif()
 
 if(MSVC)
     add_compile_options(/W4 /Zi /GS /fp:fast /permissive- /MP /Qspectre)
+    add_compile_options(/we4013)    # '%s' undefined; assuming extern returning int
     
     if(TIM41_USE_AVX2)
         add_compile_options(/arch:AVX2)