From: Pablo Neira Ayuso <pablo@netfilter.org>
To: David Miller <davem@davemloft.net>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] netfilter: Fix switch statement warnings with recent gcc.
Date: Wed, 8 Apr 2015 18:46:14 +0200 [thread overview]
Message-ID: <20150408164614.GA22526@salvia> (raw)
In-Reply-To: <20150407.230542.359453916233129441.davem@davemloft.net>
On Tue, Apr 07, 2015 at 11:05:42PM -0400, David Miller wrote:
>
> More recent GCC warns about two kinds of switch statement uses:
>
> 1) Switching on an enumeration, but not having an explicit case
> statement for all members of the enumeration. To show the
> compiler this is intentional, we simply add a default case
> with nothing more than a break statement.
>
> 2) Switching on a boolean value. I think this warning is dumb
> but nevertheless you get it wholesale with -Wswitch.
>
> This patch cures all such warnings in netfilter.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
next prev parent reply other threads:[~2015-04-08 16:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 3:05 [PATCH] netfilter: Fix switch statement warnings with recent gcc David Miller
2015-04-08 16:46 ` Pablo Neira Ayuso [this message]
2015-04-08 19:21 ` David Miller
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=20150408164614.GA22526@salvia \
--to=pablo@netfilter.org \
--cc=davem@davemloft.net \
--cc=netfilter-devel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).