From 1f615e19f88690c617de0fa86a4d716739772975 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Tue, 9 Apr 2024 10:35:11 +0200 Subject: [PATCH] build: suppress msvc warning c4127 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fdf65f621..92ca7e392 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,7 +186,7 @@ if(CMAKE_BUILD_TYPE MATCHES "DEBUG") elseif(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /std:c11 /experimental:c11atomics") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++latest /experimental:c11atomics") - add_compile_options(/W4 /WX /Od) + add_compile_options(/W4 /WX /Od /wd4127) elseif(CMAKE_SYSTEM_NAME MATCHES "Generic") add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -pipe -g -O0) endif()