File 0003-Silence-most-of-the-GCC-warnings.patch of Package libqt5-qtwebengine

From 10e146a7ff95542d937f55c9d06c00a26ea69445 Mon Sep 17 00:00:00 2001
From: Allan Sandfeld Jensen <allan.jensen@qt.io>
Date: Fri, 19 Oct 2018 14:56:23 +0200
Subject: Silence most of the GCC warnings

Change-Id: I09882f850bac97c04a3d772e5f6386ce896c57b9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
---
 chromium/build/config/compiler/BUILD.gn | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/3rdparty/chromium/build/config/compiler/BUILD.gn b/src/3rdparty/chromium/build/config/compiler/BUILD.gn
index c82854c19e..d223a4f6fd 100644
--- a/src/3rdparty/chromium/build/config/compiler/BUILD.gn
+++ b/src/3rdparty/chromium/build/config/compiler/BUILD.gn
@@ -1427,6 +1427,14 @@ config("default_warnings") {
       # comments
       # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61638
       cflags += [ "-Wno-comments" ]
+
+      # Disable a number of GCC warnings caused by a mix
+      # of Chromium and GCC bugs.
+      cflags += [ "-Wno-dangling-else" ]
+      cflags += [ "-Wno-packed-not-aligned" ]
+      cflags_cc += [ "-Wno-attributes" ]
+      cflags_cc += [ "-Wno-class-memaccess" ]
+      cflags_cc += [ "-Wno-subobject-linkage" ]
     }
   }
 
-- 
cgit v1.2.1

openSUSE Build Service is sponsored by