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]
Other format: [Raw text]

Re: C99 implies -Wimplicit-function-declaration?


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)

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