solenv/gbuild/platform/com_MSC_defs.mk | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 90ca44ae9f897b6abc80b3c5acfdea798d4f69ea Author: Thomas Arnhold <tho...@arnhold.org> Date: Wed Aug 13 17:27:47 2014 +0200 MSVC: disable C4189 again in optimizing builds MSVC2012 emits bogus "unused variable" warnings for variables only used in a condition of SAL_WARN_IF in optimizing compilations. Nevertheless it's quite useful to have these warnings when not optimizing, then it does not emit them bogusly. Change-Id: I58a071db65bed15f753def793da8c0f9677abd4b diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk index 380b2c5..0911a07 100644 --- a/solenv/gbuild/platform/com_MSC_defs.mk +++ b/solenv/gbuild/platform/com_MSC_defs.mk @@ -70,6 +70,8 @@ gb_AFLAGS := $(AFLAGS) # C4127: conditional expression is constant +# C4189: 'identifier' : local variable is initialized but not referenced + # C4201: nonstandard extension used : nameless struct/union # C4242: 'identifier' : conversion from 'type1' to 'type2', possible @@ -137,6 +139,7 @@ gb_CFLAGS := \ -nologo \ -W4 \ -wd4127 \ + $(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \ -wd4242 \ -wd4244 \ -wd4251 \ @@ -159,6 +162,7 @@ gb_CXXFLAGS := \ -nologo \ -W4 \ -wd4127 \ + $(if $(filter 0,$(gb_DEBUGLEVEL)),-wd4189) \ -wd4201 \ -wd4244 \ -wd4250 \ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits