From: Joe Perches <joe@perches.com>
To: Randy Dunlap <rdunlap@infradead.org>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: fallthrough question
Date: Sat, 19 Feb 2022 03:08:57 -0800 [thread overview]
Message-ID: <60e0b4b5b1f925743d2bfbbaf170bfecfd0c92fc.camel@perches.com> (raw)
In-Reply-To: <858a2b13-64e1-99bc-e2f7-5b2477bb1126@infradead.org>
On Fri, 2022-02-18 at 13:57 -0800, Randy Dunlap wrote:
> Hi,
>
> I expected this to produce a fallthrough warning, but it doesn't
> (with gcc 11.1.0):
>
> from sound/oss/dmasound/dmasound_core.c:#1481, when falling from case 1
> into case 0: (in arch/m68k/ selected builds only)
>
> case 1:
> if ((size = ints[2]) < 256) /* check for small buffer specs */
> size <<= 10 ;
> if (size < MIN_BUFSIZE || size > MAX_BUFSIZE)
> printk("dmasound_setup: invalid write buffer size, using default = %d\n", writeBufSize);
> else
> writeBufSize = size;
> case 0:
> break;
> default:
>
> Can you tell me what is going on here?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91432
prev parent reply other threads:[~2022-02-19 11:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-18 21:57 Randy Dunlap
2022-02-18 23:15 ` Gustavo A. R. Silva
2022-02-18 23:41 ` Randy Dunlap
2022-02-19 11:08 ` Joe Perches [this message]
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=60e0b4b5b1f925743d2bfbbaf170bfecfd0c92fc.camel@perches.com \
--to=joe@perches.com \
--cc=gustavoars@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®