diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-10-20 16:06:33 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-10-20 19:01:19 +0200 |
commit | 848c25b6b1cd1a1881b74ac68c48c87bc535106b (patch) | |
tree | f50771f967ec582fd8173e3a3d77c38aae14cde5 /idlc/source/scanner.l | |
parent | 243d743dae127fe11ecd7f807121da8815af8f01 (diff) |
Silence compiler warnings C4005 (redefined INT8_MIN etc.)
Change-Id: I29feefb1045e22addcbe68c00e3ed601e258519d
Reviewed-on: https://gerrit.libreoffice.org/43607
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'idlc/source/scanner.l')
-rw-r--r-- | idlc/source/scanner.l | 9 |
1 files changed, 9 insertions, 0 deletions
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> |