]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
UBUNTU: SAUCE: usbip: add -Wno-address-of-packed-member to EXTRA_CFLAGS
authorSeth Forshee <seth.forshee@canonical.com>
Mon, 8 Jul 2019 04:15:19 +0000 (23:15 -0500)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 14 Dec 2020 07:30:39 +0000 (08:30 +0100)
commit0147c7c5d5a7a6654ac3f0715c835283f3a93474
tree4d949545ae21b64958394014046187cde647b453
parent683d08eb1380fafac5d42d777e6eebf54d1fdcbe
UBUNTU: SAUCE: usbip: add -Wno-address-of-packed-member to EXTRA_CFLAGS

Fails to build with gcc 9.1.0 due to
-Werror=address-of-packed-member. One example:

  usbip_network.c: In function 'usbip_net_pack_usb_device':
  usbip_network.c:79:32: error: taking address of packed member of 'struct usbip_usb_device' may result in an unaligned pointer value [-Werror=address-of-packed-member]
     79 |  usbip_net_pack_uint32_t(pack, &udev->busnum);
        |                                ^~~~~~~~~~~~~

All of these are code which is explicitly packing a struct, so
add -Wno-address-of-packed-member to EXTRA_CFLAGS to disable this
warning.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
tools/usb/usbip/configure.ac