openwrt/package/network
Kevin Darbyshire-Bryant 7ebc51a57f umdns: suppress address-of-packed-member warning
gcc 8 & 9 appear to be more picky with regards access alignment to
packed structures, leading to this warning in dns.c:

dns.c:261:2: error: converting a packed ‘struct dns_question’ pointer
(alignment 1) to a ‘uint16_t’ {aka ‘short unsigned int’} pointer
(alignment 2) may result in an unaligned pointer value
[-Werror=address-of-packed-member]

261 |  uint16_t *swap = (uint16_t *) q;

Work around what I think is a false positive by turning the warning off.
Not ideal, but not quite as not ideal as build failure.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(cherry picked from commit 02640f0147)
2020-05-04 16:22:39 +01:00
..
config netifd: add support for suppressing the DHCP request hostname by setting it to * 2019-12-22 22:52:01 +01:00
ipv6 map: drop default encaplimit value 2018-12-18 11:28:13 +01:00
services umdns: suppress address-of-packed-member warning 2020-05-04 16:22:39 +01:00
utils ethtool: fix PKG_CONFIG_DEPENDS 2020-01-07 21:42:48 +01:00