Skip to content

Commit 0d764d0

Browse files
committed
[Build] Disable -Wdocumentation
LLVM doesn't have this warning enabled, so we end up with a whole tonne of warnings from the LLVM headers.
1 parent 3bc570f commit 0d764d0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cmake/modules/SwiftSharedCMakeConfig.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,6 @@ macro(swift_common_cxx_warnings)
297297
endif()
298298
endif()
299299

300-
check_cxx_compiler_flag("-Werror -Wdocumentation" CXX_SUPPORTS_DOCUMENTATION_FLAG)
301-
if(CXX_SUPPORTS_DOCUMENTATION_FLAG)
302-
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wdocumentation>)
303-
endif()
304-
305300
check_cxx_compiler_flag("-Werror -Wimplicit-fallthrough" CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG)
306301
if(CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG)
307302
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wimplicit-fallthrough>)

0 commit comments

Comments
 (0)