Skip to content

Commit 027a8a3

Browse files
authored
Merge pull request #5647 from ab9rf/c4062
enable msvc c4062
2 parents 5cae965 + ab4bb52 commit 027a8a3

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)