[Dnsmasq-discuss] [PATCH] Fix alignment issue
Simon Kelley
simon at thekelleys.org.uk
Tue Aug 7 14:05:38 BST 2007
Alex Landau wrote:
> A few compilation warnings, if you're interested... They were present in the previous
> version too.
>
> bfin-uclinux-gcc -O2 -DNO_IPV6 -DNO_TFTP -DHAVE_BROKEN_RTC -D__uClinux__ -DNO_GETTEXT
> `echo -DNO_IPV6 -DNO_TFTP -DHAVE_BROKEN_RTC -D__uClinux__ | ../bld/pkg-wrapper pkg-config
> --cflags dbus-1` -Wall -W -c rfc1035.c
> rfc1035.c: In function ‘questions_crc’:
> rfc1035.c:352: warning: comparison between signed and unsigned
> rfc1035.c: In function ‘find_pseudoheader’:
> rfc1035.c:429: warning: comparison between signed and unsigned
> rfc1035.c: In function ‘find_soa’:
> rfc1035.c:512: warning: comparison between signed and unsigned
> rfc1035.c:548: warning: comparison between signed and unsigned
> rfc1035.c: In function ‘extract_addresses’:
> rfc1035.c:609: warning: comparison between signed and unsigned
> rfc1035.c:640: warning: comparison between signed and unsigned
> rfc1035.c:715: warning: comparison between signed and unsigned
> rfc1035.c: In function ‘check_for_bogus_wildcard’:
> rfc1035.c:920: warning: comparison between signed and unsigned
New test release:
http://www.thekelleys.org.uk/dnsmasq/test-releases/dnsmasq-2.40test21.tar.gz
should fix these. It's strange that I don't see them: I suspect
differences in system header files.
>
> bfin-uclinux-gcc -O2 -DNO_IPV6 -DNO_TFTP -DHAVE_BROKEN_RTC -D__uClinux__ -DNO_GETTEXT
> `echo -DNO_IPV6 -DNO_TFTP -DHAVE_BROKEN_RTC -D__uClinux__ | ../bld/pkg-wrapper pkg-config
> --cflags dbus-1` -Wall -W -c dnsmasq.c
> dnsmasq.c: In function ‘check_dns_listeners’:
> dnsmasq.c:848: warning: unused variable ‘p’
>
> bfin-uclinux-gcc -O2 -DNO_IPV6 -DNO_TFTP -DHAVE_BROKEN_RTC -D__uClinux__ -DNO_GETTEXT
> `echo -DNO_IPV6 -DNO_TFTP -DHAVE_BROKEN_RTC -D__uClinux__ | ../bld/pkg-wrapper pkg-config
> --cflags dbus-1` -Wall -W -c netlink.c
> netlink.c: In function ‘iface_enumerate’:
> netlink.c:122: warning: label ‘again’ defined but not used
> netlink.c:104: warning: unused parameter ‘ipv6_callback’
>
These are side-effects of disabling IPV6. I think I'd rather live with
them than add to to the #ifdef forrest.
Cheers,
Simon.
More information about the Dnsmasq-discuss
mailing list