tree-wide: use DISABLE_WARNING_FORMAT_NONLITERAL where appropriate

This commit is contained in:
Lennart Poettering
2020-05-25 18:25:05 +02:00
parent 6a5b28def2
commit 56e577c62f
5 changed files with 12 additions and 15 deletions
+3 -3
View File
@@ -123,12 +123,12 @@ _printf_(2, 3) static int log_callback(int type, const char *fmt, ...) {
fmt2 = strjoina("selinux: ", fmt);
va_start(ap, fmt);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
DISABLE_WARNING_FORMAT_NONLITERAL;
log_internalv(LOG_AUTH | callback_type_to_priority(type),
0, PROJECT_FILE, __LINE__, __FUNCTION__,
fmt2, ap);
#pragma GCC diagnostic pop
REENABLE_WARNING;
va_end(ap);
return 0;