Browse Source
Merge pull request #5340 from Morph1984/gcc-warnings
cmake: Enforce -Werror=switch and -Werror=unused-variable
pull/15/merge
LC
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/CMakeLists.txt
|
|
|
@ -67,8 +67,10 @@ else() |
|
|
|
-Werror=implicit-fallthrough |
|
|
|
-Werror=missing-declarations |
|
|
|
-Werror=reorder |
|
|
|
-Werror=switch |
|
|
|
-Werror=uninitialized |
|
|
|
-Werror=unused-result |
|
|
|
-Werror=unused-variable |
|
|
|
-Wextra |
|
|
|
-Wmissing-declarations |
|
|
|
-Wno-attributes |
|
|
|
|