Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Nov 1998 09:10:25 +0100 (CET)
From:      Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To:        Archie Cobbs <archie@whistle.com>
Cc:        current@FreeBSD.ORG, ryany@pobox.com, (John Polstra) <jdp@polstra.com>
Subject:   Re: Current 'make world' warnings cleanup
Message-ID:  <XFMail.981104091025.asmodai@wxs.nl>
In-Reply-To: <199811040611.WAA20667@bubba.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04-Nov-98 Archie Cobbs wrote:
> John Polstra writes:
>> Sounds good.  Just one thing: don't fall prey to the temptation to
>> fix all the pointer mismatch warnings by blindly inserting casts just
>> to make the compiler shut up.  That's a common mistake, and as often
>> as not it simply hides the real problem from the compiler rather than
>> fixing it.
> 
> Another gotcha when doing this.. often "unused variable" warnings
> happen because there is a variable declared that is only used
> when certain #ifdef's are true. The solution in these cases is
> not to remove the variable, but to enclose it's declaration
> within equivalent #ifdef's.. 

So in general someone forgot to put them between the appropriate definition
statements right? Either by mistake or whatever...

---
Jeroen Ruigrok van der Werven/Asmodai [trying to get his C on par]
asmodai(at)wxs.nl
Junior Network/Security Specialist
FreeBSD & picoBSD: The Power to Serve...

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.981104091025.asmodai>