From 7b19520d371b02a311c4d179f0db2c2ecd99c29c Mon Sep 17 00:00:00 2001 From: stefson Date: Fri, 15 Feb 2019 18:54:19 +0100 Subject: [PATCH 1/2] eclass/mozcoreconf-v6: add -Wno-psabi to surpress outdated compiler warnings --- eclass/mozcoreconf-v6.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass index 862d632cd99d7..253099dab7429 100644 --- a/eclass/mozcoreconf-v6.eclass +++ b/eclass/mozcoreconf-v6.eclass @@ -239,7 +239,7 @@ mozconfig_init() { # We need to append flags for gcc-6 support if [[ $(gcc-major-version) -ge 6 ]]; then - append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns -fno-schedule-insns2 + append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns -fno-schedule-insns2 -Wno-psabi fi # Use the MOZILLA_FIVE_HOME for the rpath From 0ad1cbd3cd6ca6c125b295e862bad37cebc30571 Mon Sep 17 00:00:00 2001 From: stefson Date: Mon, 16 Sep 2019 17:40:20 +0200 Subject: [PATCH 2/2] mozcoreconf-v6: add some more cxxflags to supress warnings --- eclass/mozcoreconf-v6.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass index 253099dab7429..e031e7fe4d61f 100644 --- a/eclass/mozcoreconf-v6.eclass +++ b/eclass/mozcoreconf-v6.eclass @@ -239,7 +239,7 @@ mozconfig_init() { # We need to append flags for gcc-6 support if [[ $(gcc-major-version) -ge 6 ]]; then - append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns -fno-schedule-insns2 -Wno-psabi + append-cxxflags -flifetime-dse=1 -Wno-psabi -Wno-class-memaccess -Wno-int-in-bool-context -Wno-multistatement-macros -Wno-maybe-uninitialized -Wno-deprecated-declarations fi # Use the MOZILLA_FIVE_HOME for the rpath