diff options
-rw-r--r-- | vcl/source/filter/jpeg/jpegc.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/filter/jpeg/jpegc.cxx b/vcl/source/filter/jpeg/jpegc.cxx index 2c9908b07d44..0aed0f2b4a1c 100644 --- a/vcl/source/filter/jpeg/jpegc.cxx +++ b/vcl/source/filter/jpeg/jpegc.cxx @@ -37,12 +37,21 @@ extern "C" { #include <JpegWriter.hxx> #include <boost/scoped_array.hpp> +#ifdef _MSC_VER +#pragma warning(push, 1) /* disable to __declspec(align()) aligned warning */ +#pragma warning (disable: 4324) +#endif + struct ErrorManagerStruct { jpeg_error_mgr pub; jmp_buf setjmp_buffer; }; +#ifdef _MSC_VER +#pragma warning(pop) +#endif + extern "C" void errorExit (j_common_ptr cinfo) { ErrorManagerStruct * error = reinterpret_cast<ErrorManagerStruct *>(cinfo->err); |