summaryrefslogtreecommitdiffstats
path: root/src/locale
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-25 18:16:33 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-25 18:25:05 +0200
commit56e577c62ff358d2abcc966559014e9e7d36d90c (patch)
treef863ef98b26e77025b8f9971ed2847a3fdd5c636 /src/locale
parentjson: use our regular way to turn off compiler warnings (diff)
downloadsystemd-56e577c62ff358d2abcc966559014e9e7d36d90c.tar.xz
systemd-56e577c62ff358d2abcc966559014e9e7d36d90c.zip
tree-wide: use DISABLE_WARNING_FORMAT_NONLITERAL where appropriate
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/localed.c5
1 files changed, 2 insertions, 3 deletions
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) \