summaryrefslogtreecommitdiffstats
path: root/patches/chromium/0005-Do-not-warn-for-header-hygiene.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/chromium/0005-Do-not-warn-for-header-hygiene.patch')
-rw-r--r--patches/chromium/0005-Do-not-warn-for-header-hygiene.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/chromium/0005-Do-not-warn-for-header-hygiene.patch b/patches/chromium/0005-Do-not-warn-for-header-hygiene.patch
new file mode 100644
index 000000000..01afa7e9c
--- /dev/null
+++ b/patches/chromium/0005-Do-not-warn-for-header-hygiene.patch
@@ -0,0 +1,26 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Zeno Albisser <zeno.albisser@digia.com>
+Date: Wed, 3 Jul 2013 11:16:56 +0200
+Subject: 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 9961053..ab759282 100644
+--- a/build/common.gypi
++++ b/build/common.gypi
+@@ -3936,6 +3936,7 @@
+ '-Wno-newline-eof',
+ '-Wno-unused-value',
+ '-Wno-unused-variable',
++ '-Wno-header-hygiene',
+ ],
+ }],
+ ['clang==1 and clang_use_chrome_plugins==1', {