Skip to content

Commit ab4bb52

Browse files
committed
enable msvc c4062
fixes #5641
1 parent 5cae965 commit ab4bb52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ if(MSVC)
122122
# Enable C5038 - This is equivalent to gcc's -Werror=reorder, which is enabled by default by gcc -Wall
123123
add_compile_options("/w15038")
124124

125+
# Enable C4062 - Warns about missing enum case in switch statement, equivalent to gcc -Wswitch
126+
add_compile_options("/w14062")
127+
125128
# MSVC panics if an object file contains more than 65,279 sections. this
126129
# happens quite frequently with code that uses templates, such as vectors.
127130
add_compile_options("/bigobj")

0 commit comments

Comments
 (0)