aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-04-06 16:27:42 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-04-11 14:16:30 +0200
commit26e2a97b1cbb099fae5a7b613ea1edbb342a4061 (patch)
tree08b9705d1c1805cf4a536e0835205d15be2136a6 /src/libstat
parent765813e908e0f23e98ec6224b0408a152a9d3ec0 (diff)
downloadrspamd-26e2a97b1cbb099fae5a7b613ea1edbb342a4061.tar.gz
rspamd-26e2a97b1cbb099fae5a7b613ea1edbb342a4061.zip
[Minor] enable Wmissing-format-attribute
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/backends/redis_backend.c9
1 files changed, 9 insertions, 0 deletions
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,