lkml.org 
[lkml]   [2001]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] More compile warning fixes for 2.4.0
On 10 Jan 2001, Alan Shutko wrote:

> Marco Colombo <marco@esi.it> writes:
>
> > But what happens if I delete the stm1 line? We have:
> >
> > case xxx:
> > /* fallthrough */
> > case yyy:
> > stm2;
> >
> > which is wrong.
>
> AFAIK, that's perfectly correct. It's only the case where you have a
> label at the end of a block (without a statement following it) where
> it's an error.
>
> In the grammar, a statement must follow a label, but a
> labeled-statement is a type of statement, so you can stack labels as
> much as you want, as long as there's a statement somewhere after them.
>
> That is, assuming I'm reading the standard right (ISO/IEC 9899:1990,
> Section 6.6, 6.6.1).

Opps, sorry, I misunderstood Linus' message, then.

.TM.
--
____/ ____/ /
/ / / Marco Colombo
___/ ___ / / Technical Manager
/ / / ESI s.r.l.
_____/ _____/ _/ Colombo@ESI.it


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.052 / U:0.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site