Message ID | alpine.LFD.2.01.0906181034590.16802@localhost.localdomain (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
diff --git a/parse.c b/parse.c index df696e5..e5ad867 100644 --- a/parse.c +++ b/parse.c @@ -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)
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> --- parse.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html