summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/0001-Do-not-warn-for-header-hygiene.patch29
-rwxr-xr-xpatches/patch-chromium.sh1
2 files changed, 30 insertions, 0 deletions
diff --git a/patches/0001-Do-not-warn-for-header-hygiene.patch b/patches/0001-Do-not-warn-for-header-hygiene.patch
new file mode 100644
index 000000000..c13e3257c
--- /dev/null
+++ b/patches/0001-Do-not-warn-for-header-hygiene.patch
@@ -0,0 +1,29 @@
+From 5f3a19c6f12690d882f1136af4338531c04149b3 Mon Sep 17 00:00:00 2001
+From: Zeno Albisser <zeno.albisser@digia.com>
+Date: Wed, 3 Jul 2013 11:16:56 +0200
+Subject: [PATCH] Do not warn for header-hygiene.
+
+QtDeclarative is consciously leaking the namespace QtQml.
+Therefore clang would warn about header hygiene.
+Unfortunately this cannot be fixed in QtDeclarative,
+unless we accept not to be able to use QtQuick1 and QtQuick2
+in the same application.
+---
+ build/common.gypi | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/build/common.gypi b/build/common.gypi
+index 0e57abb..e81104b 100644
+--- a/build/common.gypi
++++ b/build/common.gypi
+@@ -3850,6 +3850,7 @@
+ '-Wno-newline-eof',
+ '-Wno-unused-value',
+ '-Wno-unused-variable',
++ '-Wno-header-hygiene',
+ ],
+ }],
+ ['clang==1 and clang_use_chrome_plugins==1', {
+--
+1.7.12.4 (Apple Git-37)
+
diff --git a/patches/patch-chromium.sh b/patches/patch-chromium.sh
index 6d39e87b6..6bc1c5e05 100755
--- a/patches/patch-chromium.sh
+++ b/patches/patch-chromium.sh
@@ -66,6 +66,7 @@ git am $PATCH_DIR/0002-Add-WebEngineContext-to-RunLoop-s-friends.patch
git am $PATCH_DIR/0001-Mac-Use-libc-instead-of-stdlibc.patch
git am $PATCH_DIR/0002-Clang-libc-does-not-support-incomplete-types-in-temp.patch
git am $PATCH_DIR/0001-Mac-Do-not-modify-the-child-path.patch
+git am $PATCH_DIR/0001-Do-not-warn-for-header-hygiene.patch
cd $CHROMIUM_SRC_DIR/third_party/WebKit
echo "Entering $PWD"