From: Ján Tomko Date: Tue, 15 Jan 2019 12:00:52 +0000 (+0100) Subject: virnetdevip: Avoid cast align warning X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0ca65b7b61df36cff58fe96dd22d0b968cbb1fd4;p=libvirt.git virnetdevip: Avoid cast align warning Commit 7282f455a got rid of the VIR_WARNINGS_NO_CAST_ALIGN macro when refactoring the code and broke the build with clang. Signed-off-by: Ján Tomko --- diff --git a/src/util/virnetdevip.c b/src/util/virnetdevip.c index b6df422cd1..f39467f1d6 100644 --- a/src/util/virnetdevip.c +++ b/src/util/virnetdevip.c @@ -599,7 +599,9 @@ virNetDevIPCheckIPv6ForwardingCallback(struct nlmsghdr *resp, data->hasRARoutes = true; len -= NLMSG_ALIGN(nh->rtnh_len); + VIR_WARNINGS_NO_CAST_ALIGN nh = RTNH_NEXT(nh); + VIR_WARNINGS_RESET } }