aboutsummaryrefslogtreecommitdiffstats
path: root/community/libdispatch/remove-werror.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/libdispatch/remove-werror.patch')
-rw-r--r--community/libdispatch/remove-werror.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/libdispatch/remove-werror.patch b/community/libdispatch/remove-werror.patch
new file mode 100644
index 00000000000..02bdfb2f922
--- /dev/null
+++ b/community/libdispatch/remove-werror.patch
@@ -0,0 +1,12 @@
+Patch-Source: https://github.com/archlinux/svntogit-community/blob/packages/libdispatch/trunk/remove-werror.patch
+
+--- a/cmake/modules/DispatchCompilerWarnings.cmake
++++ b/cmake/modules/DispatchCompilerWarnings.cmake
+@@ -2,7 +2,6 @@
+ if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
+ # TODO: someone needs to provide the msvc equivalent warning flags
+ 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>)
+