From 41b67450599e4267a38c1a5ae2eba6bcd1c730b5 Mon Sep 17 00:00:00 2001 From: trav90 Date: Sat, 8 Sep 2018 08:43:33 -0500 Subject: Silence the -Wuninitialized warning in mozjemalloc GCC 7+ warns about too many false positives. --- memory/mozjemalloc/moz.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'memory') diff --git a/memory/mozjemalloc/moz.build b/memory/mozjemalloc/moz.build index feeb4fb07..a7c1e5f2a 100644 --- a/memory/mozjemalloc/moz.build +++ b/memory/mozjemalloc/moz.build @@ -37,7 +37,10 @@ LOCAL_INCLUDES += [ ] if CONFIG['GNU_CC']: - CFLAGS += ['-Wno-unused'] # too many annoying warnings from mfbt/ headers + # too many annoying warnings from mfbt/ headers + # also too many false positives from functions generated through rb_wrab from rb.h. + CFLAGS += ['-Wno-unused', + '-Wno-uninitialized'] if CONFIG['_MSC_VER']: CFLAGS += ['-wd4273'] # inconsistent dll linkage (bug 558163) -- cgit v1.2.3