From ba91ff2de598d15a73ec37419e83977229711d6a Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 12 Mar 2024 22:40:50 +0200 Subject: [PATCH] Revert shadow changes and add option -Wno-error=shadow to cmakefile --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2dd5dae..4dda56b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ if (ENABLE_STACK_DEBUG) endif() if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") - set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wshadow -Werror ${CMAKE_CXX_FLAGS}") + set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-error=shadow -Werror ${CMAKE_CXX_FLAGS}") elseif(MSVC) set(CMAKE_CXX_FLAGS "/WX ${CMAKE_CXX_FLAGS}") add_definitions(-D_CRT_SECURE_NO_WARNINGS)