* [PATCH] Ignore the may_alias GCC attribute
@ 2010-06-01 16:35 Damien Lespiau
2010-06-01 22:31 ` Christopher Li
0 siblings, 1 reply; 2+ messages in thread
From: Damien Lespiau @ 2010-06-01 16:35 UTC (permalink / raw)
To: linux-sparse
[-- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Ignore the may_alias GCC attribute
2010-06-01 16:35 [PATCH] Ignore the may_alias GCC attribute Damien Lespiau
@ 2010-06-01 22:31 ` Christopher Li
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Li @ 2010-06-01 22:31 UTC (permalink / raw)
To: Damien Lespiau; +Cc: linux-sparse
On Tue, Jun 1, 2010 at 9:35 AM, Damien Lespiau <damien.lespiau@gmail.com> wrote:
> 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?).
>
The patch looks good. Will apply.
Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-01 22:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-01 16:35 [PATCH] Ignore the may_alias GCC attribute Damien Lespiau
2010-06-01 22:31 ` Christopher Li
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).