dhcpcd-discuss

Re: git master: compiler warnings

Roy Marples

Wed Oct 04 00:32:45 2017

On 04/10/2017 00:07, Roy Marples wrote:
Hi Maddes

On 03/10/2017 22:40, M. Buecher wrote:
I compiled the current git master on Raspbian/Debian 9.1 and got some compiler warnings regarding signed/unsigned conversions. Just wanted to inform you, so that these can get handled during the ongoing development.
Build log from debuild is attached for your reference.

What cc version is this?

One metric here - I only get compile warnings on Linux.
Using gcc or clang on NetBSD or FreeBSD I get no warnings.
Using gcc on OpenBSD I get one bogus warning as their gcc is so old.
Using clang on Linux, I only get warnings in if-Linux.c, due to RTA and NLM headers. I also get warnings elsewhere just because Linux stupidly reversed the IPv6 IMCP filtering headers from the BSD implementation for no good reason.

All other warnings are crap generated by gcc.
The newest gcc-7.4.0 throws a warning in control.c because a sun_path *could* be 108 characters on Linux. Big whoop, it's too stupid to work out that dhcpcd ensures it will be less.

In other words, I'm more than happy to fix compile errors, but NOT ones caused by gcc or Linux exclusively unless they really are issues in dhcpcd.

Roy

References:
git master: compiler warningsM. Buecher
Re: git master: compiler warningsRoy Marples
Archive administrator: postmaster@marples.name