diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 17:41:29 +0000 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2009-07-18 05:30:10 +0000 |
commit | 977365deff2986acc7a41a377fc8defda406af6c (patch) | |
tree | b2bd0f24fbc01e9826024771840dec91748ee10c /parse.c | |
parent | Turn off '-Wtransparent-union' by default (diff) | |
download | sparse-977365deff2986acc7a41a377fc8defda406af6c.tar.gz sparse-977365deff2986acc7a41a377fc8defda406af6c.tar.bz2 sparse-977365deff2986acc7a41a377fc8defda406af6c.zip |
Avoid "attribute 'warning': unknown attribute" warning
This avoids getting annoying warnings from <curl/typecheck-gcc.h> and from
<bits/string3.h>, which use the "__attribute__((__warning__ (msg)))" gcc
attribute.
[ The attribute causes gcc to print out the supplied warning message if
the function is used. We should some day support it, but this patch just
makes us ignore it. ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -528,6 +528,8 @@ static struct init_keyword { { "__cold__", NS_KEYWORD, .op = &ignore_attr_op }, { "hot", NS_KEYWORD, .op = &ignore_attr_op }, { "__hot__", NS_KEYWORD, .op = &ignore_attr_op }, + { "warning", NS_KEYWORD, .op = &ignore_attr_op }, + { "__warning__", NS_KEYWORD, .op = &ignore_attr_op }, }; void init_parser(int stream) |