sparse: don't warn about unknown attributes
commitde7f3315f1c10d10bff506d29edea37766d0e5c8
authorRasmus Villemoes <rv@rasmusvillemoes.dk>
Tue, 8 Dec 2015 22:18:28 +0000 (8 23:18 +0100)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Dec 2015 11:38:13 +0000 (9 14:38 +0300)
treeda13e21c07ceabdac38e75aa8bc180852a0c409f
parent39a99369dc964e490ff369eb94cdba642f00e605
sparse: don't warn about unknown attributes

The kernel and other projects use lots of attributes which sparse
doesn't know about. Since these are often used in widely included
header files (e.g. no_sanitize_address or assume_aligned), we get a
lot of noise for no benefit (the compiler proper complains if the
attributes are not properly guarded by suitable version checks).

So turn off these annoying and useless warnings. They can be turned on
explicitly by Wunknown-attribute.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
lib.c
lib.h
parse.c