From c2b4fac693e1a57e76a459da75943fca60a4650d Mon Sep 17 00:00:00 2001 From: Christophe Date: Thu, 4 Jan 2024 13:42:56 +0100 Subject: [PATCH] Remove disabled warnings --- test/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 20834019eb..0c49099795 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -199,14 +199,17 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") if(NOT GLM_DISABLE_AUTO_DETECTION) add_compile_options(-Werror -Weverything) endif() - add_compile_options(-Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-c++11-long-long -Wno-padded -Wno-gnu-anonymous-struct -Wno-nested-anon-types) - add_compile_options(-Wno-undefined-reinterpret-cast -Wno-sign-conversion -Wno-unused-variable -Wno-missing-prototypes -Wno-unreachable-code -Wno-missing-variable-declarations -Wno-sign-compare -Wno-global-constructors -Wno-unused-macros -Wno-format-nonliteral -Wno-float-equal) +# add_compile_options(-Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-c++11-long-long -Wno-padded -Wno-gnu-anonymous-struct -Wno-nested-anon-types) +# add_compile_options(-Wno-undefined-reinterpret-cast -Wno-sign-conversion -Wno-unused-variable -Wno-missing-prototypes -Wno-unreachable-code -Wno-missing-variable-declarations -Wno-sign-compare -Wno-global-constructors -Wno-unused-macros -Wno-format-nonliteral -Wno-float-equal) elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") if(NOT GLM_QUIET) message("GLM: GCC - ${CMAKE_CXX_COMPILER_ID} compiler") endif() + if(NOT GLM_DISABLE_AUTO_DETECTION) + add_compile_options(-Werror -Weverything) + endif() add_compile_options(-O2) add_compile_options(-Wno-long-long) @@ -223,7 +226,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") if(NOT GLM_DISABLE_AUTO_DETECTION) add_compile_options(/W4 /WX) endif() - add_compile_options(/wd4309 /wd4324 /wd4389 /wd4127 /wd4267 /wd4146 /wd4201 /wd4464 /wd4514 /wd4701 /wd4820 /wd4365) +# add_compile_options(/wd4309 /wd4324 /wd4389 /wd4127 /wd4267 /wd4146 /wd4201 /wd4464 /wd4514 /wd4701 /wd4820 /wd4365) add_definitions(-D_CRT_SECURE_NO_WARNINGS) endif()