[Libreoffice-commits] core.git: idlc/source
Mike Kaganski
mike.kaganski at collabora.com
Fri Oct 20 17:01:43 UTC 2017
idlc/source/scanner.l | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 848c25b6b1cd1a1881b74ac68c48c87bc535106b
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date: Fri Oct 20 16:06:33 2017 +0300
Silence compiler warnings C4005 (redefined INT8_MIN etc.)
Change-Id: I29feefb1045e22addcbe68c00e3ed601e258519d
Reviewed-on: https://gerrit.libreoffice.org/43607
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l
index cfb9cb6d56ed..4c78ab968bd7 100644
--- a/idlc/source/scanner.l
+++ b/idlc/source/scanner.l
@@ -30,7 +30,16 @@
#include <rtl/character.hxx>
+#if defined _MSC_VER
+#pragma warning ( push )
+// Silence warnings about redefinition of INT8_MIN etc in stdint.h
+// The flex-generated workdir/LexTarget/idlc/source/scanner.cxx defines them prior to these includes
+#pragma warning ( disable : 4005 )
+#endif
#include <idlc.hxx>
+#if defined _MSC_VER
+#pragma warning ( pop )
+#endif
#include <errorhandler.hxx>
#include <fehelper.hxx>
More information about the Libreoffice-commits
mailing list