This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC warnings for unused global variables
- From: dewar at gnat dot com (Robert Dewar)
- To: espie at quatramaran dot ens dot fr, gcc at gcc dot gnu dot org
- Date: Thu, 1 May 2003 07:05:08 -0400 (EDT)
- Subject: Re: GCC warnings for unused global variables
> And warning on perfectly legal, innocuous constructs makes
> absolutely no sense to me.
Well all warnings apply to legal constructs, or they would be errors!
As to innocuous, the reason why something is NOT an error is that you
can't tell whether it is innocous or not, so warnings almost always
generate some false positives (or they would not be warnings!)
In this case, it is not clear what you are suggesting, to remove all
warnings in this situation would certainly remove some very useful
warnings.