summaryrefslogtreecommitdiff
path: root/patches/quell-c++0x-warnings-clang.patch
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2013-03-25 20:34:20 +0000
committer <>2014-07-24 09:30:49 +0000
commit56cb1ee59d372968d670644ed805667e9999d8a0 (patch)
tree90a6edd50122da9abf5ec3320f1a680cb8d0d8e1 /patches/quell-c++0x-warnings-clang.patch
downloadmozjs17-master.tar.gz
Imported from /home/lorry/working-area/delta_mozilla_mozjs17/mozjs17.0.0.tar.gz.HEADmozjs17.0.0master
Diffstat (limited to 'patches/quell-c++0x-warnings-clang.patch')
-rw-r--r--patches/quell-c++0x-warnings-clang.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/patches/quell-c++0x-warnings-clang.patch b/patches/quell-c++0x-warnings-clang.patch
new file mode 100644
index 0000000..31dc5f1
--- /dev/null
+++ b/patches/quell-c++0x-warnings-clang.patch
@@ -0,0 +1,17 @@
+# HG changeset patch
+# Parent 8b85cfdb7719c664652ebb389c5375a515dd109a
+diff --git a/mfbt/Attributes.h b/mfbt/Attributes.h
+--- a/mfbt/Attributes.h
++++ b/mfbt/Attributes.h
+@@ -13,6 +13,11 @@
+ * code that is (only currently) mfbt-incompatible.
+ */
+
++/* Suppress any warnings about c++0x extensions. */
++#if defined(__clang__)
++# pragma clang diagnostic ignored "-Wc++0x-extensions"
++#endif
++
+ /*
+ * MOZ_INLINE is a macro which expands to tell the compiler that the method
+ * decorated with it should be inlined. This macro is usable from C and C++