Re: WARNS = 2, sbin/ping...

Dag-Erling Smorgrav <[email protected]> Sun, 09 Feb 2003 14:30:58 +0100
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
Sean Chittenden <[email protected]> writes:
> Speaking of WARNS2, here's a patch that bumps ping(8) to WARNS2.  Once
> upon a tie it used to be WARNS5, but the patch has rotted some.  The
> biggie in this one was collisions with sin(3) and sockaddr_in variable
> sin. 

That's a compiler bug (unless <math.h> is in scope).  The correct
solution is not to rename the variable, but to add -fno-builtin to
CFLAGS globally, and fix those parts of the tree that break due to
missing includes.  Who knows, we might even uncover libc bugs that
have been hitherto been masked by the compiler.

DES
-- 
Dag-Erling Smorgrav - [email protected]

To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-audit" in the body of the message