summaryrefslogtreecommitdiff
path: root/dev-lang/swift/files/swift-6.1.3/disable-libdispatch-werror.patch
blob: 962073f4c4006c410272e1ff52e0bccb29c977b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Packages should not have `-Werror` unconditionally enabled.

--- a/swift-corelibs-libdispatch/cmake/modules/DispatchCompilerWarnings.cmake
+++ b/swift-corelibs-libdispatch/cmake/modules/DispatchCompilerWarnings.cmake
@@ -6,7 +6,6 @@
   # so that we can use __popcnt64
   add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-fms-extensions>)
 else()
-  add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Werror>)
   add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wall>)
   add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wextra>)