mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
cmake: Enforce -Warray-bounds and -Wmissing-field-initializers globally
This commit is contained in:
parent
cc4335a9c6
commit
748551dafb
@ -64,8 +64,10 @@ if (MSVC)
|
|||||||
else()
|
else()
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
-Wall
|
-Wall
|
||||||
|
-Werror=array-bounds
|
||||||
-Werror=implicit-fallthrough
|
-Werror=implicit-fallthrough
|
||||||
-Werror=missing-declarations
|
-Werror=missing-declarations
|
||||||
|
-Werror=missing-field-initializers
|
||||||
-Werror=reorder
|
-Werror=reorder
|
||||||
-Werror=switch
|
-Werror=switch
|
||||||
-Werror=uninitialized
|
-Werror=uninitialized
|
||||||
|
@ -308,10 +308,8 @@ if (MSVC)
|
|||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_compile_options(video_core PRIVATE
|
target_compile_options(video_core PRIVATE
|
||||||
-Werror=array-bounds
|
|
||||||
-Werror=conversion
|
-Werror=conversion
|
||||||
-Wno-error=sign-conversion
|
-Wno-error=sign-conversion
|
||||||
-Werror=missing-field-initializers
|
|
||||||
-Werror=pessimizing-move
|
-Werror=pessimizing-move
|
||||||
-Werror=redundant-move
|
-Werror=redundant-move
|
||||||
-Werror=shadow
|
-Werror=shadow
|
||||||
|
Loading…
Reference in New Issue
Block a user