diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-20 18:18:32 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-20 18:18:32 +0100 |
commit | bcfce235a3d757f0ec3b0c01e8583382db1adfe2 (patch) | |
tree | 78a0c2102a7b0db526c01abeb352e77e708f418e /src/modules-load/modules-load.c | |
parent | beb999379ced9e8d765e533e43d35aab11aa5c39 (diff) |
macro: introduce a nice macro for disabling -Wformat-nonliteral temporarily
Diffstat (limited to 'src/modules-load/modules-load.c')
-rw-r--r-- | src/modules-load/modules-load.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |