From bcfce235a3d757f0ec3b0c01e8583382db1adfe2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 20 Feb 2014 18:18:32 +0100 Subject: macro: introduce a nice macro for disabling -Wformat-nonliteral temporarily --- src/modules-load/modules-load.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules-load') diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c index c3aa409446..37d7a77068 100644 --- a/src/modules-load/modules-load.c +++ b/src/modules-load/modules-load.c @@ -48,13 +48,13 @@ static const char conf_file_dirs[] = #endif ; -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wformat-nonliteral" static void systemd_kmod_log(void *data, int priority, const char *file, int line, const char *fn, const char *format, va_list args) { + + DISABLE_WARNING_FORMAT_NONLITERAL; log_metav(priority, file, line, fn, format, args); + REENABLE_WARNING; } -#pragma GCC diagnostic pop static int add_modules(const char *p) { _cleanup_strv_free_ char **k = NULL; -- cgit v1.2.3-54-g00ecf