From: Tobias Klauser <tklauser@distanz.ch>
To: Joe Perches <joe@perches.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vhost: Storage class should be before const qualifier
Date: Thu, 20 May 2010 10:00:42 +0200 [thread overview]
Message-ID: <20100520080042.GW9489@distanz.ch> (raw)
In-Reply-To: <1274104497.1705.589.camel@Joe-Laptop.home>
On 2010-05-17 at 15:54:57 +0200, Joe Perches <joe@perches.com> wrote:
> On Mon, 2010-05-17 at 15:27 +0200, Tobias Klauser wrote:
> > On 2010-05-17 at 15:13:35 +0200, Michael S. Tsirkin <mst@redhat.com> wrote:
> > > On Mon, May 17, 2010 at 03:12:49PM +0200, Tobias Klauser wrote:
> > > > The C99 specification states in section 6.11.5:
> > > > The placement of a storage-class specifier other than at the beginning
> > > > of the declaration specifiers in a declaration is an obsolescent
> > > > feature.
> > > > Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
> > > Just to clarify: does some compiler/checker actually barf on this?
> > GCC does emit a warning if the options '-std=c99 -W -Wall' are present.
> > ICC also does warn about this, though I don't know whether this depends
> > on any commandline options.
>
> Perhaps others should be converted as well.
>
> $ grep -rPl --include=*.[ch] "^[ \t]*const\s+static" * | \
> xargs sed -i -r -e 's/^[ \t]*const[ \t]+static\b/static const/g'
Thanks, I slightly modified this (to preserve possible whitespaces at
the beginning of the line) and will submit the patches to the respective
maintainers/mailinglists.
Tobias
prev parent reply other threads:[~2010-05-20 8:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1274101969-21109-1-git-send-email-tklauser@distanz.ch>
[not found] ` <20100517131335.GA12126@redhat.com>
[not found] ` <20100517132748.GQ9489@distanz.ch>
2010-05-17 13:54 ` Joe Perches
2010-05-20 8:00 ` Tobias Klauser [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=20100520080042.GW9489@distanz.ch \
--to=tklauser@distanz.ch \
--cc=joe@perches.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®