[Libreoffice-commits] core.git: solenv/gbuild

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Jul 15 23:46:34 UTC 2018


 solenv/gbuild/platform/WNT_INTEL_MSC.mk |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 232622051966faa116e7093d5c0df26e44cddb43
Author:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
AuthorDate: Mon Jul 16 01:32:56 2018 +0200
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Mon Jul 16 01:46:13 2018 +0200

    Fix Win32 warning C4702: unreachable code
    
    ..by disabling the warning for the moment. This happens on x86 builds
    with VS2017, but only with OSL_DEBUG_LEVEL=0, e.g. at:
    
     cppuhelper/source/servicemanager.cxx(1311) : error C2220: warning treated as error - no ´object´ file generated
     cppuhelper/source/servicemanager.cxx(1311) : warning C4702: unreachable code
     cppuhelper/source/servicemanager.cxx(1373) : warning C4702: unreachable code
    
    Change-Id: I91943350d7f6f5acfedb3b2bb14e5d835e4494ed
    Reviewed-on: https://gerrit.libreoffice.org/57472
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/solenv/gbuild/platform/WNT_INTEL_MSC.mk b/solenv/gbuild/platform/WNT_INTEL_MSC.mk
index 704c7f7817dc..72679c5a0e30 100644
--- a/solenv/gbuild/platform/WNT_INTEL_MSC.mk
+++ b/solenv/gbuild/platform/WNT_INTEL_MSC.mk
@@ -22,6 +22,9 @@ gb_CPUDEFS := -D_X86_=1
 
 include $(GBUILDDIR)/platform/com_MSC_defs.mk
 
+gb_CXXFLAGS += \
+        $(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4702) \
+
 include $(GBUILDDIR)/platform/com_MSC_class.mk
 
 # vim: set noet sw=4:


More information about the Libreoffice-commits mailing list