chiark / gitweb /
basic/log: fix _printf_ annotation on log_object_internalv
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 20 Apr 2017 18:09:47 +0000 (14:09 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:51 +0000 (09:46 +0200)
commit7c3d5fdca2113db4a26c585061ee8ed1b159dd73
tree03d423eb97fbf6af1048f95a212b8cc22a168384
parentf38f1736cfb535a245bd894d28e08ed29cd50f28
basic/log: fix _printf_ annotation on log_object_internalv

Fixup for 4b58153dd22172d817055d2a09a0cdf3f4bd9db3.

I saw this because of a clang warning. With gcc the -Wformat-nonliteral warning
doesn't seem to work as expected.

In two places, a string constructed with strjoina is used as the pattern. This
is safe, because we're taking a pattern which was already marked with _printf_
and prepending a known value to it.  Those places are marked with #pragma to
silence the warning.
src/basic/log.h