Skip to content

Commit 0ff8713

Browse files
committed
Remove -Wno-deprecated-declarations from compiler options
All uses of deprecated functions have been replaced.
1 parent 39ef927 commit 0ff8713

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
7878
# Enable lots of warnings
7979
set(CMAKE_CXX_FLAGS
8080
"${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wswitch-enum \
81-
-Wno-deprecated-declarations -Wno-maybe-uninitialized")
81+
-Wno-maybe-uninitialized")
8282
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
8383
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
8484
# Ensure NDEBUG is not set for release builds
8585
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
8686
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
8787
# Enable lots of warnings
8888
set(CMAKE_CXX_FLAGS
89-
"${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wswitch-enum -Wno-deprecated-declarations")
89+
"${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wswitch-enum")
9090
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
9191
# This would be the place to enable warnings for Windows builds, although
9292
# config.inc doesn't seem to do that currently

src/config.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ ifeq ($(BUILD_ENV),MSVC)
66
#CXXFLAGS += /Wall /WX
77
else
88
CXXFLAGS += -Wall -pedantic -Werror -Wswitch-enum
9-
CXXFLAGS += -Wno-deprecated-declarations
109
# GCC only, silence clang warning
1110
CXXFLAGS += -Wno-maybe-uninitialized -Wno-unknown-warning-option
1211
endif

0 commit comments

Comments
 (0)