srp: Don't use QEMU_PACKED for single elements of a structured type
commit93d3ad2a8048469d2b2bb157697425b66b2a37aa
authorStefan Weil <sw@weilnetz.de>
Fri, 10 Aug 2012 20:03:27 +0000 (10 22:03 +0200)
committerStefan Hajnoczi <stefanha@gmail.com>
Fri, 14 Sep 2012 07:21:27 +0000 (14 08:21 +0100)
tree077cb94e83dcca763b0a339ad0c2aa9334e55835
parente0a1e32dbc41e6b2aabb436a9417dfd32177a3dc
srp: Don't use QEMU_PACKED for single elements of a structured type

QEMU_PACKED results in a MinGW compiler warning when it is
used for single structure elements:

warning: 'gcc_struct' attribute ignored

Using QEMU_PACKED for the whole structure avoids the compiler warning
without changing the memory layout.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
hw/srp.h