This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1.1 stuff
> Date: Wed, 4 Nov 1998 22:20:22 +0100
> From: Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>
> Cc: law@cygnus.com, egcs@cygnus.com
>
> > implicit.C:3: warning: implicit declaration of function `int foo(...)'
> [...]
> > This is actually quite important -- the C++ spec emphasizes that functions
> > must be explicitly declared, and this failure to flag an error causes us some
> > trouble with generated code that really does need to be flagged.
>
> The C++ spec does not talk about errors and warnings. Instead, it
> requires that an implementation should produce *diagnostic
> message*. It is implementation-defined what constitutes these
> diagnostics. For g++, diagnostics include error and warning message.
>
> As Jason points out, -pedantic-errors turns warnings into errors.
At the very least, please provide a specific option to reject undeclared
functions.
--
Robert Krawitz <rlk@tiac.net> http://www.tiac.net/users/rlk/
Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- mail lpf@uunet.uu.net
"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton