linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Damien Lespiau <damien.lespiau@gmail.com>
To: linux-sparse@vger.kernel.org
Subject: [PATCH] Ignore the may_alias GCC attribute
Date: Tue, 1 Jun 2010 17:35:52 +0100	[thread overview]
Message-ID: <AANLkTikvGsi4Ju25yduhlszVP3BOiCEEHrlO6hNoGKFV@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 325 bytes --]

Unfortunately, linux-sparse seems to reject my git send-emails with
GMail's SMTP server, so I'm attaching the git format-patch instead.

may_alias is used in the wild (glib) and makes sparse spew a lot of
unhelpful warning messages. Ignore it (for now?).

Signed-off-by: Damien Lespiau <damien.lespiau@gmail.com>

-- 
Damien

[-- Attachment #2: 0001-Ignore-the-may_alias-GCC-attribute.patch --]
[-- Type: application/octet-stream, Size: 732 bytes --]

From 1dfcbbc7160877f49c19ac06447f033baeec1ebf Mon Sep 17 00:00:00 2001
From: Damien Lespiau <damien.lespiau@gmail.com>
Date: Wed, 26 May 2010 11:52:57 +0100
Subject: [PATCH] Ignore the may_alias GCC attribute

may_alias is used in the wild (glib) and makes sparse spew a lot of
unhelpful warning messages. Ignore it (for now?).

Signed-off-by: Damien Lespiau <damien.lespiau@gmail.com>
---
 parse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/parse.c b/parse.c
index f81b19f..f5c5497 100644
--- a/parse.c
+++ b/parse.c
@@ -517,6 +517,8 @@ const char *ignored_attributes[] = {
 	"__hot__",
 	"malloc",
 	"__malloc__",
+	"may_alias",
+	"__may_alias__",
 	"model",
 	"__model__",
 	"ms_abi",
-- 
1.7.0.1


             reply	other threads:[~2010-06-01 16:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-01 16:35 Damien Lespiau [this message]
2010-06-01 22:31 ` [PATCH] Ignore the may_alias GCC attribute Christopher Li

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=AANLkTikvGsi4Ju25yduhlszVP3BOiCEEHrlO6hNoGKFV@mail.gmail.com \
    --to=damien.lespiau@gmail.com \
    --cc=linux-sparse@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).