From 5eec4ae78693aa37eb505d0020e5779926449af4 Mon Sep 17 00:00:00 2001 From: Chris Apple Date: Mon, 23 Dec 2024 14:40:28 -0700 Subject: [PATCH 1/2] Enable W4, WX for windows --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 806ec21..b74afe9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,7 @@ set(RTLOG_ALL_WARNINGS) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU") set(RTLOG_ALL_WARNINGS "-Wall;-Werror;-Wformat;-Wextra;-Wformat-security;-Wno-unused-function") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - set(RTLOG_ALL_WARNINGS "") + set(RTLOG_ALL_WARNINGS "/W4;/WX") endif() target_compile_options(rtlog From 7e2ac9706384a65309098f98f6ec408e793ae076 Mon Sep 17 00:00:00 2001 From: Chris Apple Date: Mon, 23 Dec 2024 14:47:48 -0700 Subject: [PATCH 2/2] Disable 4505 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b74afe9..7d568be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,7 @@ set(RTLOG_ALL_WARNINGS) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU") set(RTLOG_ALL_WARNINGS "-Wall;-Werror;-Wformat;-Wextra;-Wformat-security;-Wno-unused-function") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - set(RTLOG_ALL_WARNINGS "/W4;/WX") + set(RTLOG_ALL_WARNINGS "/W4;/WX;/wd4505") endif() target_compile_options(rtlog