This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "no return statement" warning weirdness
- From: Richard Henderson <rth at redhat dot com>
- To: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 18 Mar 2004 13:28:10 -0800
- Subject: Re: "no return statement" warning weirdness
- References: <200403181830.TAA09985@faui1d.informatik.uni-erlangen.de>
On Thu, Mar 18, 2004 at 07:30:57PM +0100, Ulrich Weigand wrote:
> This appears to be due to a check for C_FUNCTION_IMPLICIT_INT before
> emitting the warning: when using just 'long', this flag is set to 1,
> and if the flag is 1 the warning is not output.
>
> Is this supposed to work that way?
No.
(1) "long" is not an implicit int.
(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.
r~