Date: Tue, 3 Nov 1998 22:11:34 -0800 (PST) From: Archie Cobbs <archie@whistle.com> To: jdp@polstra.com (John Polstra) Cc: ryany@pobox.com, current@FreeBSD.ORG Subject: Re: Current 'make world' warnings cleanup Message-ID: <199811040611.WAA20667@bubba.whistle.com> In-Reply-To: <199811040541.VAA18498@austin.polstra.com> from John Polstra at "Nov 3, 98 09:41:24 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
John Polstra writes: > > I'm not 100% certain if this is the right place to be asking this, but: > > I noticed on the FreeBSD projects page that running a make world with extra > > warnings enabled, and then clean up the warnings, although not a high priority > > project, would be a good thing to do. > > > > Well, seeing as how my count of all instances of ' warning: ' within my log > > of my most recent make world totals to about 85,000 lines, I figure this > > might be as good a place as any to burn my weekend/weeknight time. > > 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.. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com 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?199811040611.WAA20667>