Skip to content

Commit 362b555

Browse files
committed
[CMake] Disable warnings for anonymous nested types
Some commit accidentally changed `-Wno-nested-anon-types` to `-Wnested-anon-types`.
1 parent c7bdf20 commit 362b555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/SwiftSharedCMakeConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ macro(swift_common_cxx_warnings)
337337

338338
check_cxx_compiler_flag("-Werror -Wnested-anon-types" CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG)
339339
if(CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG)
340-
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wnested-anon-types>)
340+
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wno-nested-anon-types>)
341341
endif()
342342

343343
# Check for '-fapplication-extension'. On OS X/iOS we wish to link all

0 commit comments

Comments
 (0)