All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Shutko <ats@acm.org>
To: Marco Colombo <marco@esi.it>
Cc: Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] More compile warning fixes for 2.4.0
Date: 10 Jan 2001 11:52:56 -0500	[thread overview]
Message-ID: <874rz7pcwn.fsf@wesley.springies.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0101101619230.16888-100000@Megathlon.ESI>
In-Reply-To: <Pine.LNX.4.21.0101101619230.16888-100000@Megathlon.ESI>

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).        

-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
Programmers do it bit by bit.
-
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/

  reply	other threads:[~2001-01-10 16:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-07  2:40 [PATCH] More compile warning fixes for 2.4.0 Rich Baum
2001-01-07 12:41 ` Paul Gortmaker
2001-01-07 13:17   ` Keith Owens
2001-01-08 19:50 ` Erik Mouw
2001-01-08 20:17   ` Alan Cox
2001-01-09  5:30   ` Richard Henderson
2001-01-09 10:02     ` Albert D. Cahalan
2001-01-09 15:10       ` Richard B. Johnson
2001-01-09 18:51       ` Linus Torvalds
2001-01-09 21:24         ` Albert D. Cahalan
2001-01-09 21:31           ` Linus Torvalds
2001-01-10  2:20             ` Andrea Arcangeli
2001-01-10  7:10               ` Linus Torvalds
2001-01-10 13:17                 ` Rich Baum
2001-01-10 13:32                 ` Andrea Arcangeli
2001-01-10 16:03                 ` Marco Colombo
2001-01-10 16:52                   ` Alan Shutko [this message]
2001-01-10 17:32                     ` Marco Colombo
2001-01-10 17:19                   ` Linus Torvalds
2001-01-10 18:02                     ` Marco Colombo
2001-01-10  1:58         ` Rich Baum
2001-01-09  1:23 ` Rich Baum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874rz7pcwn.fsf@wesley.springies.com \
    --to=ats@acm.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marco@esi.it \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.