]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 20 Apr 2017 18:42:43 +0000 (14:42 -0400)
commit032b75419d7ad6cab188d1ff5c5d1d322eff1171
treee93d0fe2cf168b3c8e42c63b04261730e61917ed
parent40591b418327aa1579de9f10fd1c50f3927ecb33
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
src/core/selinux-access.c
src/locale/localed.c