Bug 1411158 - Remove some warning exceptions in memory/build/moz.build. r=njn
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 24 Oct 2017 14:48:05 +0900
changeset 685716 9c357f374072f460dcf060e61bc4f4de6ede25fc
parent 685715 8748ba617b656a70dde2e2cea1d3b204636d3d4f
child 685717 66b6eee5b343a028cf8f072dc6f84f373e7a9834
push id86016
push userkgupta@mozilla.com
push dateWed, 25 Oct 2017 01:53:44 +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()