This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Warnings in the C++ Front-End and GCC in General


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/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]