]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: avoid type-punning in vbox
authorEric Blake <eblake@redhat.com>
Thu, 19 Apr 2012 23:19:32 +0000 (17:19 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 19 Apr 2012 23:19:32 +0000 (17:19 -0600)
commit1aeacfd5e97ede2a62f0e0e2cb39dc508a317268
tree7f271a0d2e1faf0466b42cdb09509756e594197c
parentc9cd419caba9effa11ca53e8696e5f6a4b424d60
build: avoid type-punning in vbox

Commit 78345c68 makes at least gcc 4.1.2 on RHEL 5 complain:

cc1: warnings being treated as errors
In file included from vbox/vbox_V4_0.c:13:
vbox/vbox_tmpl.c: In function 'vboxDomainUndefineFlags':
vbox/vbox_tmpl.c:5298: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

* src/vbox/vbox_tmpl.c (vboxDomainUndefineFlags): Use union to
avoid compiler warning.
src/vbox/vbox_tmpl.c