Warnings in the C++ Front-End and GCC in General
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Fri Sep 11 15:08:00 GMT 1998
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/
More information about the Gcc
mailing list