[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - 2 commits - desktop/unx solenv/gbuild

Michael Stahl mstahl at redhat.com
Wed Sep 13 17:14:57 UTC 2017


 desktop/unx/source/pagein.c            |    1 +
 solenv/gbuild/platform/com_GCC_defs.mk |   14 ++++++++++++++
 2 files changed, 15 insertions(+)

New commits:
commit 387974a78a68d54db38e3b74a1ac687928cd04a4
Author: Michael Stahl <mstahl at redhat.com>
Date:   Wed Sep 13 15:01:09 2017 +0200

    gbuild: suppress -Werror on new GCC 7 warnings for release branch
    
    These are endemic and fixes too many to backport.
    
    Change-Id: I07b3c18c4fe654a840dcbd395bfc05e80649d574
    Reviewed-on: https://gerrit.libreoffice.org/42247
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 6b697fc9461c..0b8911436347 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -96,6 +96,20 @@ gb_CXXFLAGS_COMMON += \
     -Wunused-const-variable=1
 endif
 
+# for release branch, exclude all new GCC7 warnings from Werror
+ifeq ($(shell expr '$(GCC_VERSION)' '>=' 700),1)
+gb_CFLAGS_COMMON += \
+	-Wno-deprecated \
+	-Wno-error=implicit-fallthrough \
+
+gb_CXXFLAGS_COMMON += \
+	-Wno-deprecated \
+	-Wno-error=implicit-fallthrough \
+	-Wno-error=format-truncation \
+	-Wno-error=int-in-bool-context \
+
+endif
+
 ifeq ($(COM_IS_CLANG),TRUE)
 gb_CXXFLAGS_COMMON += -Wimplicit-fallthrough
 endif
commit 831c187d831972ed96ac4d535ef5773503c3db00
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Mar 8 10:37:38 2017 +0100

    WaE: include needed header
    
    "error: In the GNU C Library, "major" is defined
    by <sys/sysmacros.h>. For historical compatibility, it is
    currently defined by <sys/types.h> as well, but we plan to
    remove this soon. To use "major", include <sys/sysmacros.h>
    directly. If you did not intend to use a system-defined macro
    "major", you should undefine it after including <sys/types.h>."
    
    Change-Id: I7f5741d4c2eae277e316c5fc97aa73b9430fbdc1
    (cherry picked from commit 01bf741a79241829b0d5c048e8f45e3cf6914d3e)
    Reviewed-on: https://gerrit.libreoffice.org/42246
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c
index 56baffa79ca3..a401419fc162 100644
--- a/desktop/unx/source/pagein.c
+++ b/desktop/unx/source/pagein.c
@@ -25,6 +25,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <sys/types.h>
 
 /* do_pagein */


More information about the Libreoffice-commits mailing list