Kaydet (Commit) 4e102d6a authored tarafından Mike Kaganski's avatar Mike Kaganski

sdext: MSVC: pragma warning: make more specific, remove obsolete

Change-Id: I317b952c27fd052d4f19aa0dfc4ee9ce1e4705ad
Reviewed-on: https://gerrit.libreoffice.org/49046Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 974ea04d
......@@ -18,10 +18,6 @@
*/
#if defined _MSC_VER
#pragma warning(push, 1)
#endif
#include <pdfparse.hxx>
// workaround windows compiler: do not include multi_pass.hpp
......@@ -35,11 +31,6 @@
#include <rtl/strbuf.hxx>
#include <rtl/alloc.h>
// disable warnings again because someone along the line has enabled them
#if defined _MSC_VER
#pragma warning(push, 1)
#endif
using namespace boost::spirit;
using namespace pdfparse;
......@@ -677,9 +668,5 @@ PDFEntry* PDFReader::read( const char* pFileName )
#endif // WIN32
}
#if defined _MSC_VER
#pragma warning(pop)
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -28,10 +28,6 @@
#include <memory>
#include <vector>
#if defined _MSC_VER
#pragma warning(push, 1)
#endif
// sigh, UTF8.h was removed in poppler-0.21.0 and put back in 0.21.1, then renamed to UnicodeMapFuncs.h in 0.62.0
// FIXME: we can't use #if POPPLER_CHECK_VERSION(0, 21, 0) && !POPPLER_CHECK_VERSION(0, 21, 1)
// because the internal poppler does not provide poppler-version.h and the macro always returns 0
......@@ -45,10 +41,6 @@
#include "UTF8.h"
#endif
#if defined _MSC_VER
#pragma warning(pop)
#endif
#ifdef _WIN32
# define snprintf _snprintf
......
......@@ -28,7 +28,8 @@
# pragma GCC diagnostic ignored "-Wundef"
# pragma GCC diagnostic ignored "-Wunused-parameter"
#elif defined _MSC_VER
#pragma warning(push, 1)
#pragma warning(push)
#pragma warning(disable : 4100) // unreferenced formal parameter
#endif
#include <GfxState.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment