> A warning is just that.  It's not an error, so don't treat it like one.

I use different productions to enable different warnings on code with
different histories.  For one thing, new revs of the compiler will
otherwise cause trouble when the warning behavior changes.

I also use -Werror.  Eliminating warnings is almost pointless without
this.  And yeah, I have a NO_WERROR flag for when I'm in a rush.
I know -Werror is the eventual goal.

So I disagree with Nate about ignoring warnings you've enabled -
it is too easy to ignore a new problem.  I agree with him that
gratuitous casts and similar fixes during damn-the-torpedos
mass conversions of large bodies of code are bad in that they
can effectively hide latent problems more deeply than they were
hidden before such a conversion.

So IMHO:

Eliminating warnings is good;

Any mechanistic change to eliminate warnings
that can mask problems can not be used.

Peter

-- 
Peter Dufault (dufa...@hda.com)   Realtime development, Machine control,
HD Associates, Inc.               Safety critical systems, Agency approval

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

Reply via email to