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: "no return statement" warning weirdness


On Thu, 18 Mar 2004, Richard Henderson wrote:

> (2) I think that implicit int warning suppression should go away.
>     We've removed support for K&R C.  Implicit return types are
>     officially obsolete.

Implicit return types were removed in C99 with no prior deprecation in
C90.  But I don't particularly care for this warning suppression, since
code using a missing return type but meaning "void" was dodgy anyway.

(In C99 mode the implicit return type diagnostic is mandatory and cannot
be turned off with -Wno-return-type.)

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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