diff options
author | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2020-04-04 09:20:08 +0100 |
---|---|---|
committer | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2020-04-04 11:28:18 +0100 |
commit | 02640f014719a994e2e538b2cb6376a189cd39de (patch) | |
tree | fb328e205fb53d2f299ba60346c4e6f21efac803 /target/sdk | |
parent | c14c6902f597b5b7410da32842b31c6229b3a998 (diff) | |
download | upstream-02640f014719a994e2e538b2cb6376a189cd39de.tar.gz upstream-02640f014719a994e2e538b2cb6376a189cd39de.tar.bz2 upstream-02640f014719a994e2e538b2cb6376a189cd39de.zip |
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>
Diffstat (limited to 'target/sdk')
0 files changed, 0 insertions, 0 deletions