+25
−13
Loading
Taking the address of a field in a packed struct is a bad idea, because it might not be actually aligned enough for that pointer type (and thus cause a crash on dereference on some host architectures). Newer versions of clang warn about this. Instead of passing UUID related functions the address of a possibly unaligned QemuUUID struct, use local variables and then copy to/from the struct field as appropriate. Signed-off-by:Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>