mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
CMakeLists: Treat -Wall and -Wextra as errors
This commit is contained in:
parent
0860fffd78
commit
496695618a
1 changed files with 3 additions and 3 deletions
|
@ -99,8 +99,9 @@ if (MSVC)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE)
|
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE)
|
||||||
else()
|
else()
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
-Wall
|
-Werror=all
|
||||||
-Werror=array-bounds
|
-Werror=array-bounds
|
||||||
|
-Werror=extra
|
||||||
-Werror=implicit-fallthrough
|
-Werror=implicit-fallthrough
|
||||||
-Werror=missing-declarations
|
-Werror=missing-declarations
|
||||||
-Werror=missing-field-initializers
|
-Werror=missing-field-initializers
|
||||||
|
@ -112,8 +113,7 @@ else()
|
||||||
-Werror=unused-function
|
-Werror=unused-function
|
||||||
-Werror=unused-result
|
-Werror=unused-result
|
||||||
-Werror=unused-variable
|
-Werror=unused-variable
|
||||||
-Wextra
|
|
||||||
-Wmissing-declarations
|
|
||||||
-Wno-attributes
|
-Wno-attributes
|
||||||
-Wno-invalid-offsetof
|
-Wno-invalid-offsetof
|
||||||
-Wno-unused-parameter
|
-Wno-unused-parameter
|
||||||
|
|
Loading…
Reference in a new issue