On 17 March 2010 15:33, Luca Niccoli <lultimou...@gmail.com> wrote: > The attached patch forces the compiler to align the offending variable.
Ops, forgot to clean up the patch... Cheers, Luca
diff -ruN splix-2.0.0/src/qpdl.cpp splix-2.0.0.new/src/qpdl.cpp --- splix-2.0.0/src/qpdl.cpp 2009-02-06 12:49:10.000000000 +0100 +++ splix-2.0.0.new/src/qpdl.cpp 2010-03-17 14:13:56.507981287 +0100 @@ -33,7 +33,7 @@ { unsigned long version, subVersion, size, dataSize, checkSum; bool color, headerSent=false; - unsigned char header[0x20]; + unsigned char header[0x20] __attribute__((aligned(4))); const BandPlane *plane; version = request.printer()->qpdlVersion();