]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: ignore -Wcast-align in virNetlinkDumpCommand
authorJán Tomko <jtomko@redhat.com>
Tue, 4 Apr 2017 10:51:47 +0000 (12:51 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 4 Apr 2017 10:53:23 +0000 (12:53 +0200)
commit04be4111d90193016a390ecdd144bc80fa5667ef
treee8860725f442e6912d4addd65a9dbc66475317a6
parent079832103c3b7883e36db90705631cc55cac9dcc
util: ignore -Wcast-align in virNetlinkDumpCommand

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)))
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/util/virnetlink.c