From ac28e1e851c7d00137a3e94ccca33601d33edf9d Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Wed, 25 Aug 2021 12:02:26 +0200 Subject: [PATCH] Do not hide warnings Signed-off-by: Andreas Sturmlechner --- CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ee5ce24..a6024baa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,13 +77,6 @@ include(WriteBasicConfigVersionFile) include(Definitions.cmake) -#hide warnings -string(REPLACE "-Wall" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) -string(REPLACE "-Wdeprecated-declarations" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) -string(REPLACE "-Wreorder" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) -string(REPLACE "-Wunused-variable" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) -string(REPLACE "-Wunused-parameter" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) - #add format security check set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat -Werror=format-security") -- 2.33.0