solenv/gbuild/platform/com_MSC_defs.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f9da95ca43dc10cda99d985a6365aec2ede3be4f
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Wed Mar 20 17:57:49 2024 +0100
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Thu Mar 21 11:35:00 2024 +0100

    Assume this hack is actually needed for --enable-optimized
    
    ...and not for whatever dbglevel is set.  (The latest claim that this hack 
is
    still needed at all is in the 2020-12-14 commit message
    e0a90aa3239621958bddbb30f98163e8c1ef857f "The workaround for MSVC C4702 is 
still
    needed".)
    
    Change-Id: Ia73be9417f2d738b0356e36b978beff019388ae1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165073
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/solenv/gbuild/platform/com_MSC_defs.mk 
b/solenv/gbuild/platform/com_MSC_defs.mk
index fa6a2d45bd58..2f1b653bef47 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -175,7 +175,7 @@ ifneq ($(COM_IS_CLANG),TRUE)
 # https://lists.freedesktop.org/archives/libreoffice/2018-July/080532.html
 # https://lists.freedesktop.org/archives/libreoffice/2018-August/080776.html
 gb_CXXFLAGS += \
-       $(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4702) \
+       $(if $(ENABLE_OPTIMIZED),-wd4702) \
 
 endif
 

Reply via email to