From ff005e2e9f7feb6ea9e16b4eb3bac533c993f7c4 Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Sun, 1 Sep 2024 16:41:28 +0200 Subject: [PATCH] WIN: Disable some opinionated msvc warnings. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ddbeb936..06a4622a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,7 +153,11 @@ if(FTESV) endif() # If not Miscrosoft compilator - then set additional options for linker. if (CMAKE_C_COMPILER_ID STREQUAL "MSVC") - target_compile_options(${PROJECT_NAME} PRIVATE /W4) + # 4100 - unused parameter + # 4210 - using extern keyword in functions + # 4456 - shadowing locals, broadly used + # 4459 - shadowing globals, broadly used + target_compile_options(${PROJECT_NAME} PRIVATE /W4 /wd4100 /wd4210 /wd4456 /wd4459) else() target_compile_options(${PROJECT_NAME} PRIVATE -Wall)