Bug 1411158 - Remove some warning exceptions in memory/build/moz.build. r?njn draft
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 24 Oct 2017 14:48:05 +0900
changeset 685226 5b3df46cf3a902b6768460ab8790720ee61abe71
parent 685069 9056f2ee492fa481aa86146aba236c074628e9fd
child 685266 6350f336d2e2dc80f858f8cfa2866f1ecef5e99b
push id85858
push userbmo:mh+mozilla@glandium.org
push dateTue, 24 Oct 2017 05:49:49 +0000
reviewersnjn
bugs1411158, 1403444
milestone58.0a1
Bug 1411158 - Remove some warning exceptions in memory/build/moz.build. r?njn Bug 1403444 massively refactored the red-black tree code, with the result of removing the warnings the old code was triggering. We can thus remove the exceptions for those warnings now.
memory/build/moz.build
--- a/memory/build/moz.build
+++ b/memory/build/moz.build
@@ -40,17 +40,12 @@ Library('memory')
 
 if CONFIG['OS_TARGET'] == 'Android' and CONFIG['CC_TYPE'] == 'clang':
     CFLAGS += [
         '-Wno-tautological-pointer-compare',
     ]
 
 FINAL_LIBRARY = 'mozglue'
 
-if CONFIG['GNU_CXX']:
-    # too many warnings from functions generated through rb_wrab from rb.h.
-    CXXFLAGS += ['-Wno-unused-function',
-                 '-Wno-error=uninitialized']
-
 if CONFIG['_MSC_VER']:
     CXXFLAGS += ['-wd4273'] # inconsistent dll linkage (bug 558163)
 
 DisableStlWrapping()