Skip to content

Commit 04f3ac3

Browse files
committed
Add -Wswitch-enum to default GCC/Clang build options
This is now consistent with the warnings that Visual Studio would generate, which warns about missing enum cases in switch/case even when a default: is present.
1 parent 7be0382 commit 04f3ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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-deprecated-declarations
8+
CXXFLAGS += -Wall -pedantic -Werror -Wno-deprecated-declarations -Wswitch-enum
99
endif
1010

1111
# Select optimisation or debug info

0 commit comments

Comments
 (0)