Remove Q_PACKED from structs that don't need to be packed
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 14 Sep 2013 17:31:01 +0000 (10:31 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 17 Sep 2013 16:55:55 +0000 (18:55 +0200)
commit3111178ee600558b8d3280ce5c1397e77ccc7f5f
tree899c85e47a2880bbda6f4f9972050122466d4ffb
parent992a1b260550ff6e2ad524f63ad53d7edbbcfccd
Remove Q_PACKED from structs that don't need to be packed

Those classes don't contain padding, they don't need to be packed. The
only reason to be packed was to deal with bad alignment of the WAV
file.

Since Q_PACKED wasn't present in all compilers, this might have been a
latent bug. If that was the case, then force it to happen with more
compilers.

Change-Id: I8449b6bab5d62c1b7e08b9bc205b4b149ed55e28
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
examples/multimedia/audiodecoder/wavefilewriter.cpp