Skip to contentSkip to conversation

make 'ignored_attributes[]' static

PATCH Applied Luc Van Oostenryck 2 participants 2 messages Nov 2, 2016 – Nov 17, 2016 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make 'ignored_attributes[]' static

And so quiets a warning from sparse about an undeclared symbol when running on its own code.

---
 parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
parse.c +1 -1
index 205e1264..70b3a076 100644
@@ -501,7 +501,7 @@ static struct init_keyword {
 	{ "__word__",	NS_KEYWORD,	MOD_LONG,	.op = &mode_word_op },
 };
 
-const char *ignored_attributes[] = {
+static const char *ignored_attributes[] = {
 	"alias",
 	"__alias__",
 	"alloc_align",
Signature · 1 line
2.10.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Luc Van Oostenryck

And so quiets a warning from sparse about an undeclared symbol when running on its own code.

Applied.

Chris