This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C99 implies -Wimplicit-function-declaration?
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Gary Funck <gary at intrepid dot com>
- Cc: Gcc Mailing List <gcc at gcc dot gnu dot org>
- Date: Sat, 21 May 2005 00:21:48 +0000 (UTC)
- Subject: Re: C99 implies -Wimplicit-function-declaration?
- References: <HLEPJEEBEKBMAHLBCNMMCEHNCDAA.gary@intrepid.com>
On Fri, 20 May 2005, Gary Funck wrote:
> 1 An implementation may generate warnings in many situations, none of which
> are
> specified as part of this International Standard. The following are a few of
> the more
> common situations.
> [...]
> ? A function is called but no prototype has been supplied (6.5.2.2).
No prototype is different from no declaration at all. Implicit function
declarations are not part of C99, so the code is in error in C99 mode.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)