From 56e577c62ff358d2abcc966559014e9e7d36d90c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 May 2020 18:16:33 +0200 Subject: tree-wide: use DISABLE_WARNING_FORMAT_NONLITERAL where appropriate --- src/locale/localed.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/locale') diff --git a/src/locale/localed.c b/src/locale/localed.c index a6aa3bae8c..8ffcf306b5 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -499,10 +499,9 @@ static void log_xkb(struct xkb_context *ctx, enum xkb_log_level lvl, const char const char *fmt; fmt = strjoina("libxkbcommon: ", format); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wformat-nonliteral" + DISABLE_WARNING_FORMAT_NONLITERAL; log_internalv(LOG_DEBUG, 0, __FILE__, __LINE__, __func__, fmt, args); -#pragma GCC diagnostic pop + REENABLE_WARNING; } #define LOAD_SYMBOL(symbol, dl, name) \ -- cgit v1.2.3