Merge pull request #5340 from Morph1984/gcc-warnings

cmake: Enforce -Werror=switch and -Werror=unused-variable
This commit is contained in:
LC 2021-01-13 02:30:31 -05:00 committed by GitHub
commit c320da3f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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