Skip to content

Commit 67735b5

Browse files
Disable deprecation warnings by default
1 parent 0764f77 commit 67735b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
2222
# Ensure NDEBUG is not set for release builds
2323
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
2424
# Enable lots of warnings
25-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wno-error=deprecated-declarations")
25+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wno-deprecated-declarations")
2626
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
2727
# This would be the place to enable warnings for Windows builds, although
2828
# config.inc doesn't seem to do that currently

src/config.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BUILD_ENV = AUTO
55
ifeq ($(BUILD_ENV),MSVC)
66
#CXXFLAGS += /Wall /WX
77
else
8-
CXXFLAGS += -Wall -pedantic -Werror -Wno-error=deprecated-declarations
8+
CXXFLAGS += -Wall -pedantic -Werror -Wno-deprecated-declarations
99
endif
1010

1111
# Select optimisation or debug info

0 commit comments

Comments
 (0)