1
0
Fork 0
alistair23-linux/scripts/genksyms
Nicolas Iooss 3def03441e genksyms: add printf format attribute to error_with_pos()
When compiling with -Wsuggest-attribute=format in HOSTCFLAGS, gcc
complains that error_with_pos() may be declared with a printf format
attribute:

    scripts/genksyms/genksyms.c:726:3: warning: function might be
    possible candidate for ‘gnu_printf’ format attribute
    [-Wsuggest-attribute=format]
       vfprintf(stderr, fmt, args);
       ^~~~~~~~

This would allow catching printf-format errors at compile time in
callers to error_with_pos(). Add this attribute.

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-06-06 01:22:48 +09:00
..
.gitignore genksyms: migrate parser to implicit rules 2011-06-09 14:04:41 -04:00
Makefile scripts/genksyms: clean lex/yacc generated files 2012-01-08 14:48:15 +01:00
genksyms.c kbuild: modversions: add infrastructure for emitting relative CRCs 2017-02-03 08:28:25 -08:00
genksyms.h genksyms: add printf format attribute to error_with_pos() 2017-06-06 01:22:48 +09:00
keywords.gperf kbuild/genksyms: handle va_list type 2016-11-29 15:53:19 +01:00
keywords.hash.c_shipped genksyms: Regenerate parser 2016-11-29 15:57:40 +01:00
lex.l kbuild: genksyms fix for typeof handling 2016-08-25 18:55:37 +02:00
lex.lex.c_shipped kbuild: Regenerate genksyms lexer 2016-08-25 20:03:51 +02:00
parse.tab.c_shipped genksyms: Regenerate parser 2017-01-05 13:01:13 +01:00
parse.tab.h_shipped genksyms: Regenerate parser 2016-11-29 15:57:40 +01:00
parse.y genksyms: Fix segfault with invalid declarations 2017-01-05 13:00:54 +01:00