commit:     a472ac3e8e8180995d67b099a26a44eb5200b9cb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 20 14:54:26 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun 21 07:18:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a472ac3e

www-client/chromium: Silence some GCC warnings

Silence some warnings specific to GCC that keep appearing for a very
long time.  Since upstream does not care about GCC, they are unlikely
to ever disappear.  Since they often affect header files, they repeat
often and unnecessarily increase build log size.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/16343
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 www-client/chromium/chromium-84.0.4147.45-r1.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www-client/chromium/chromium-84.0.4147.45-r1.ebuild 
b/www-client/chromium/chromium-84.0.4147.45-r1.ebuild
index baebfbedc07..966c8a05a06 100644
--- a/www-client/chromium/chromium-84.0.4147.45-r1.ebuild
+++ b/www-client/chromium/chromium-84.0.4147.45-r1.ebuild
@@ -658,6 +658,9 @@ src_configure() {
        # Chromium relies on this, but was disabled in >=clang-10, 
crbug.com/1042470
        append-cxxflags $(test-flags-CXX -flax-vector-conversions=all)
 
+       # Silence lots of GCC warnings upstream doesn't seem to care about
+       append-cxxflags -Wno-invalid-offsetof -Wno-attributes -Wno-pragmas
+
        # Explicitly disable ICU data file support for system-icu builds.
        if use system-icu; then
                myconf_gn+=" icu_use_data_file=false"

Reply via email to