[PATCH] virnetdevip: Avoid cast align warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <jtomko@xxxxxxxxxx>
---
Pushed as a build breaker fix.

 src/util/virnetdevip.c | 2 ++
 1 file changed, 2 insertions(+)

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
         }
     }
 
-- 
2.16.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux