From 26e2a97b1cbb099fae5a7b613ea1edbb342a4061 Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Mon, 6 Apr 2020 16:27:42 +0200 Subject: [Minor] enable Wmissing-format-attribute --- src/libstat/backends/redis_backend.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index 107af3490..392f1704e 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -372,6 +372,12 @@ rspamd_redis_maybe_auth (struct redis_stat_ctx *ctx, redisAsyncContext *redis) } } +// the `b` conversion type character is unknown to gcc +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat" +#pragma GCC diagnostic ignored "-Wformat-extra-args" +#endif static rspamd_fstring_t * rspamd_redis_tokens_to_query (struct rspamd_task *task, struct redis_stat_runtime *rt, @@ -625,6 +631,9 @@ rspamd_redis_tokens_to_query (struct rspamd_task *task, return out; } +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif static void rspamd_redis_store_stat_signature (struct rspamd_task *task, -- cgit v1.2.3