[Libreoffice-commits] core.git: vcl/source
David Ostrovsky
david at ostrovsky.org
Thu Feb 19 14:09:02 PST 2015
vcl/source/filter/jpeg/jpegc.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 5e8de61a620618120ecf9d48eb258b364e4fa5bc
Author: David Ostrovsky <david at ostrovsky.org>
Date: Thu Feb 19 22:40:52 2015 +0100
Disable C4324 structure was padded due to __declspec(align()) warning
Change-Id: I0b4dfe8fe06eb8f7f9fd2929d4efb4f52b25abea
Reviewed-on: https://gerrit.libreoffice.org/14560
Tested-by: Michael Stahl <mstahl at redhat.com>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
diff --git a/vcl/source/filter/jpeg/jpegc.cxx b/vcl/source/filter/jpeg/jpegc.cxx
index 2c9908b..0aed0f2 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);
More information about the Libreoffice-commits
mailing list