mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 06:36:06 +00:00
Revert "[CMake] Re-enable -Wno-gnu-anonymous-struct & -Wno-nested-anon-types."
Whoops, they should be enabled, not disabled.
This commit is contained in:
parent
755afc0af8
commit
a921f587f7
@ -363,18 +363,6 @@ if (CXX_SUPPORTS_NO_VLA_EXTENSION)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-vla-extension")
|
||||
endif ()
|
||||
|
||||
check_cxx_compiler_flag("-Wno-gnu-anonymous-struct"
|
||||
CXX_SUPPORTS_NO_GNU_ANONYMOUS_STRUCT)
|
||||
if (CXX_SUPPORTS_NO_GNU_ANONYMOUS_STRUCT)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-anonymous-struct")
|
||||
endif ()
|
||||
|
||||
check_cxx_compiler_flag("-Wno-nested-anon-types"
|
||||
CXX_SUPPORTS_NO_NESTED_ANON_TYPES)
|
||||
if (CXX_SUPPORTS_NO_NESTED_ANON_TYPES)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nested-anon-types")
|
||||
endif ()
|
||||
|
||||
# Disable MSVC warnings
|
||||
if( MSVC )
|
||||
add_definitions(
|
||||
|
Loading…
x
Reference in New Issue
Block a user