diff options
Diffstat (limited to 'patches/quell-c++0x-warnings-clang.patch')
-rw-r--r-- | patches/quell-c++0x-warnings-clang.patch | 17 |
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++ |