[OpenWrt-Devel] umdns not compiling with GCC9`

Rosen Penev rosenp at gmail.com
Tue Sep 24 22:24:45 EDT 2019


/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 {

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list