This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc "bug"
On Mon, 16 Feb 2004, Falk Hueffner wrote:
> You need -Wimplicit (or -Wall) to get a warning. This is by design,
> since many old sources use implicit declarations. For new source, you
> should always use -Wall.
Note that these warnings are on by default (and can't be turned off with
-Wno-implicit - mandatory pedwarns) in C99 mode as implicit declarations
are not part of the C99 language at all, so if and when C99 is fully
implemented and -std=gnu99 becomes the default, these warnings will also
be on by default.
--
Joseph S. Myers
jsm@polyomino.org.uk