summaryrefslogtreecommitdiff
path: root/recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch')
-rw-r--r--recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch b/recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch
new file mode 100644
index 00000000..1846b8f4
--- /dev/null
+++ b/recipes/harfbuzz/0001-harfbuzz-disable-werror-from-pragmas.patch
@@ -0,0 +1,34 @@
+From 358b876830d4e93ab1822681254ba81548d9383b Mon Sep 17 00:00:00 2001
+From: Matthew Waters <matthew@centricular.com>
+Date: Sun, 27 Mar 2022 14:39:11 +1100
+Subject: [PATCH] harfbuzz: disable werror from pragmas
+
+Currently fails building on macOS 12.3 and should actually be controlled
+by the build system.
+---
+ src/hb.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/hb.hh b/src/hb.hh
+index 3adca88..aa07101 100644
+--- a/src/hb.hh
++++ b/src/hb.hh
+@@ -62,6 +62,7 @@
+
+ /* Error. Should never happen. */
+ #ifndef HB_NO_PRAGMA_GCC_DIAGNOSTIC_ERROR
++#if 0
+ #pragma GCC diagnostic error "-Wc++11-narrowing"
+ #pragma GCC diagnostic error "-Wcast-align"
+ #pragma GCC diagnostic error "-Wcast-function-type"
+@@ -93,6 +94,7 @@
+ #pragma GCC diagnostic error "-Wvla"
+ #pragma GCC diagnostic error "-Wwrite-strings"
+ #endif
++#endif
+
+ /* Warning. To be investigated if happens. */
+ #ifndef HB_NO_PRAGMA_GCC_DIAGNOSTIC_WARNING
+--
+2.32.0 (Apple Git-132)
+