File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
78
78
# Enable lots of warnings
79
79
set (CMAKE_CXX_FLAGS
80
80
"${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wswitch-enum \
81
+ -Wextra -Wconversion \
81
82
-Wno-deprecated-declarations -Wno-maybe-uninitialized" )
82
83
elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "Clang" OR
83
84
"${CMAKE_CXX_COMPILER_ID} " STREQUAL "AppleClang" )
@@ -86,7 +87,9 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
86
87
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g" )
87
88
# Enable lots of warnings
88
89
set (CMAKE_CXX_FLAGS
89
- "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wswitch-enum -Wno-deprecated-declarations" )
90
+ "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wswitch-enum \
91
+ -Wextra -Wconversion \
92
+ -Wno-deprecated-declarations" )
90
93
elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
91
94
# This would be the place to enable warnings for Windows builds, although
92
95
# config.inc doesn't seem to do that currently
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ ifeq ($(BUILD_ENV),MSVC)
52
52
CXXFLAGS += /wd4619
53
53
else
54
54
CXXFLAGS += -Wall -pedantic -Werror -Wswitch -enum
55
- CXXFLAGS += -Wno -deprecated -declarations
55
+ CXXFLAGS += -Wno -deprecated -declarations - Wextra - Wconversion
56
56
# GCC only, silence clang warning
57
57
CXXFLAGS += -Wno -maybe -uninitialized -Wno -unknown -warning -option
58
58
endif
You can’t perform that action at this time.
0 commit comments