Bug 1416183 - Silent the -Wdeprecated-register until it is fixed in lz4 upstream r?glandium draft
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 13 Nov 2017 10:05:21 +0100
changeset 697032 b9f99b5d59488439d0dfa82c07bdb65d55e74e96
parent 697020 37fb5ea900d3f76612d1bc44434337d4bd8e1040
child 697100 855a380bdb4d87351707d446c9d1afbeee3b3503
child 697103 048995d7b80d29216bb996b2ca2fd9ae0c6f52ac
push id88871
push userbmo:sledru@mozilla.com
push dateMon, 13 Nov 2017 09:09:47 +0000
reviewersglandium
bugs1416183
milestone59.0a1
Bug 1416183 - Silent the -Wdeprecated-register until it is fixed in lz4 upstream r?glandium MozReview-Commit-ID: JXLWWrXVOQh
mfbt/moz.build
--- a/mfbt/moz.build
+++ b/mfbt/moz.build
@@ -136,19 +136,21 @@ DEFINES['IMPL_MFBT'] = True
 SOURCES += mfbt_nonunified_src_cppsrcs
 
 DisableStlWrapping()
 
 # Suppress warnings in third-party LZ4 code.
 # TODO: Remove these suppressions after bug 993267 is fixed.
 
 if CONFIG['GNU_CXX']:
-    SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function']
+    SOURCES['/mfbt/Compression.cpp'].flags += ['-Wno-unused-function',
+                                               '-Wno-deprecated-register']
     CXXFLAGS += ['-Wno-error=shadow']
 
+
 if CONFIG['CLANG_CXX']:
     # Suppress warnings from third-party V8 Decimal code.
     SOURCES['/mfbt/decimal/Decimal.cpp'].flags += ['-Wno-implicit-fallthrough']
 
 if CONFIG['_MSC_VER']:
     # Error 4804 is "'>' : unsafe use of type 'bool' in operation"
     SOURCES['/mfbt/Compression.cpp'].flags += ['-wd4804']