Skip to content

Instantly share code, notes, and snippets.

@neheb
Created September 26, 2019 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neheb/78c3684cc0c8f6fe35d7eaba9e17387b to your computer and use it in GitHub Desktop.
Save neheb/78c3684cc0c8f6fe35d7eaba9e17387b to your computer and use it in GitHub Desktop.
/home/mangix/devstuff/openwrt/build_dir/target-mips_24kc_musl/umdns-2018-01-02-78974417/dns.c:
In function 'dns_consume_question':
/home/mangix/devstuff/openwrt/build_dir/target-mips_24kc_musl/umdns-2018-01-02-78974417/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;
| ^~~~~~~~
In file included from
/home/mangix/devstuff/openwrt/build_dir/target-mips_24kc_musl/umdns-2018-01-02-78974417/dns.c:37:
/home/mangix/devstuff/openwrt/build_dir/target-mips_24kc_musl/umdns-2018-01-02-78974417/dns.h:67:8:
note: defined here
67 | struct dns_question {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment