Skip to content

Commit 3bdc2d2

Browse files
authored
Merge pull request #70793 from rintaro/cmake-nested-anon-tupes
[CMake] Disable warnings for anonymous nested types
2 parents 7d2d91a + 362b555 commit 3bdc2d2

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)