Re: [PATCH 1/2] util: ignore -Wcast-align in virNetlinkDumpCommand

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

 



On Tue, 2017-04-04 at 12:57 +0200, Ján Tomko wrote:
> Similar to commit b202c39 ignore the warning that breaks the build
> with clang:
> util/virnetlink.c:365:52: error: cast from 'char *' to 'struct nlmsghdr *'
>  increases required alignment from 1 to 4 [-Werror,-Wcast-align]
>         for (msg = resp; NLMSG_OK(msg, len); msg = NLMSG_NEXT(msg, len)) {
>                                                    ^~~~~~~~~~~~~~~~~~~~
> /usr/include/linux/netlink.h:87:7: note: expanded from macro 'NLMSG_NEXT'
>          (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ACK

-- 
Andrea Bolognani / Red Hat / Virtualization

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