This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warnings in the C++ Front-End and GCC in General
- To: egcs at cygnus dot com
- Subject: Re: Warnings in the C++ Front-End and GCC in General
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Fri, 11 Sep 1998 21:57:51 +0200 (MET DST)
- cc: Bill Currie <bcurrie at tssc dot co dot nz>, Per Bothner <bothner at cygnus dot com>, Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>, Mark Mitchell <mark at markmitchell dot com>
On Wed, 9 Sep 1998, Bill Currie wrote:
> And what about those people who insist upon compiling with -Werror (like
> me), hmm?
Bill, do your really manage to succeed with that?
We originally strived for a zero warning policy, but EGCS -- not our
code! -- still has way to many bugs which trigger incorrect warnings.
For example, as I have reported back last December, even the one-liner
main() { for(int i=1;;i++); for(int i=1;;i++); }
causes
warning: declaration of `i' shadows previous local
with egcs-1.1 and egcs-current when -Wshadow is used.
Gerald
--
Gerald Pfeifer (Jerry) Vienna University of Technology
pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/