diff options
author | Nicolas Iooss | 2017-05-20 13:27:00 +0200 |
---|---|---|
committer | Masahiro Yamada | 2017-06-05 18:22:48 +0200 |
commit | 3def03441e53e29eed3afd9009974a5a42bf124a (patch) | |
tree | f453118f5f607c8c6ba4efe8cf5a5f9b126c4247 /scripts/tags.sh | |
parent | Linux 4.12-rc2 (diff) | |
download | kernel-qcow2-linux-3def03441e53e29eed3afd9009974a5a42bf124a.tar.gz kernel-qcow2-linux-3def03441e53e29eed3afd9009974a5a42bf124a.tar.xz kernel-qcow2-linux-3def03441e53e29eed3afd9009974a5a42bf124a.zip |
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>
Diffstat (limited to 'scripts/tags.sh')
0 files changed, 0 insertions, 0 deletions