idlc/source/scanner.l | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 848c25b6b1cd1a1881b74ac68c48c87bc535106b
Author: Mike Kaganski <[email protected]>
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 <[email protected]>
Reviewed-by: Mike Kaganski <[email protected]>
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>
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits