]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
network: selectively disable -Wcast-align in virNetDevParseDadStatus
authorIan Campbell <ian.campbell@citrix.com>
Thu, 26 Nov 2015 15:10:12 +0000 (15:10 +0000)
committerJim Fehlig <jfehlig@suse.com>
Wed, 2 Dec 2015 15:07:22 +0000 (08:07 -0700)
commitaf2954ae711a315d9dfe66a251f154824d0491c4
tree63755cf06862e87ff17407e29993247780d5b086
parentbd205a9036c17c94c925d584e3d8c8a376ae60f8
network: selectively disable -Wcast-align in virNetDevParseDadStatus

Commit 0f7436ca54c9 "network: wait for DAD to finish for bridge IPv6 addresses"
results in:

 CC     util/libvirt_util_la-virnetdevmacvlan.lo
util/virnetdev.c: In function 'virNetDevParseDadStatus':
util/virnetdev.c:1319:188: error: cast increases required alignment of target type [-Werror=cast-align]
util/virnetdev.c:1332:41: error: cast increases required alignment of target type [-Werror=cast-align]
util/virnetdev.c:1334:92: error: cast increases required alignment of target type [-Werror=cast-align]
cc1: all warnings being treated as errors

on at least ARM platforms.

The three macros involved (NLMSG_NEXT, IFA_RTA and RTA_NEXT) all appear to
correctly take care of alignment, therefore suppress Wcast-align around their
uses.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Maxim Perevedentsev <mperevedentsev@virtuozzo.com>
Cc: Laine Stump <laine@laine.org>
Cc: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
src/util/virnetdev.c