mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-04 22:25:01 -06:00
Add -Wclobbered and -Wcast-function-type (no effect)
This commit is contained in:
parent
53af2dbb3f
commit
3990e2d3e6
@ -35,11 +35,14 @@ else()
|
|||||||
add_compile_options(-Wunused-parameter)
|
add_compile_options(-Wunused-parameter)
|
||||||
add_compile_options(-Wignored-qualifiers)
|
add_compile_options(-Wignored-qualifiers)
|
||||||
#add_compile_options(-Wdeprecated-copy)
|
#add_compile_options(-Wdeprecated-copy)
|
||||||
|
add_compile_options(-Wempty-body)
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
add_compile_options(-Werror=inconsistent-missing-override)
|
add_compile_options(-Werror=inconsistent-missing-override)
|
||||||
elseif(CMAKE_COMPILER_IS_GNUCXX)
|
elseif(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
add_compile_options(-Werror=suggest-override)
|
add_compile_options(-Werror=suggest-override)
|
||||||
|
add_compile_options(-Wclobbered)
|
||||||
|
add_compile_options(-Wcast-function-type)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#TODO Clean the code so these are removed
|
#TODO Clean the code so these are removed
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user