mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-14 12:01:21 +00:00
Fix a typo introduced in r168577: FlAGS -> FLAGS (note the lowercase ell)
Now we really pass -Wcovered-switch-default if the compiler supports it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0fa62a3122
commit
fa45cdf646
@ -197,11 +197,11 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
|
|||||||
endif (LLVM_ENABLE_PEDANTIC)
|
endif (LLVM_ENABLE_PEDANTIC)
|
||||||
check_cxx_compiler_flag("-Werror -Wcovered-switch-default" CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG)
|
check_cxx_compiler_flag("-Werror -Wcovered-switch-default" CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG)
|
||||||
if( CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG )
|
if( CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG )
|
||||||
set( CMAKE_CXX_FlAGS "${CMAKE_CXX_FLAGS} -Wcovered-switch-default" )
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wcovered-switch-default" )
|
||||||
endif()
|
endif()
|
||||||
check_c_compiler_flag("-Werror -Wcovered-switch-default" C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG)
|
check_c_compiler_flag("-Werror -Wcovered-switch-default" C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG)
|
||||||
if( C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG )
|
if( C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG )
|
||||||
set( CMAKE_C_FlAGS "${CMAKE_C_FLAGS} -Wcovered-switch-default" )
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcovered-switch-default" )
|
||||||
endif()
|
endif()
|
||||||
endif (LLVM_ENABLE_WARNINGS)
|
endif (LLVM_ENABLE_WARNINGS)
|
||||||
if (LLVM_ENABLE_WERROR)
|
if (LLVM_ENABLE_WERROR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user