diff options
author | Michael Stahl <mstahl@redhat.com> | 2018-02-14 20:49:21 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2018-02-15 15:57:48 +0100 |
commit | a8ea79b10bfc4851d092270f02fa8c817c9bc0d9 (patch) | |
tree | f359b62160f04b2111040cd9af7900928e590cf6 /sdext | |
parent | 21c3a446ccc6fa0f812531b072f5d18875b7aaca (diff) |
sdext: disable MSVC 2017 warnings from boost headers
Change-Id: I6eb816f155a222ca4299fd425c79d38bf2d464dc
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfparse.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx index e5350d26745d..a13b44b0a371 100644 --- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx @@ -20,12 +20,23 @@ #include <pdfparse.hxx> +// boost using obsolete stuff +#if defined(_MSC_VER) +#pragma warning(push) +#pragma warning(disable:4996) +#endif + // workaround windows compiler: do not include multi_pass.hpp #include <boost/spirit/include/classic_core.hpp> #include <boost/spirit/include/classic_utility.hpp> #include <boost/spirit/include/classic_error_handling.hpp> #include <boost/spirit/include/classic_file_iterator.hpp> #include <boost/bind.hpp> + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + #include <string.h> #include <rtl/strbuf.hxx> |