diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-14 10:49:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 10:49:26 +0100 |
commit | 13724fefdc9dbc31609938c06d6c99ba47d1729d (patch) | |
tree | d3ac8a5c59504a0362d0a692069f9b20973e3edf /contrib/hiredis/async.h | |
parent | 29f38bde308faed44b6298338451fb7b82923c65 (diff) | |
parent | b29b85055e05b1e2f5112ca93c7c6b4673ff42ca (diff) | |
download | rspamd-13724fefdc9dbc31609938c06d6c99ba47d1729d.tar.gz rspamd-13724fefdc9dbc31609938c06d6c99ba47d1729d.zip |
Merge pull request #3332 from cgzones/compiler_new
Resolve various Compiler warnings
Diffstat (limited to 'contrib/hiredis/async.h')
-rw-r--r-- | contrib/hiredis/async.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/hiredis/async.h b/contrib/hiredis/async.h index 3d20241c6..40a5a49c8 100644 --- a/contrib/hiredis/async.h +++ b/contrib/hiredis/async.h @@ -119,7 +119,13 @@ void redisAsyncHandleWrite(redisAsyncContext *ac); /* Command functions for an async context. Write the command to the * output buffer and register the provided callback. */ +#ifdef __GNUC__ +__attribute__((format(printf, 4, 0))) +#endif int redisvAsyncCommand(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, const char *format, va_list ap); +#ifdef __GNUC__ +__attribute__((format(printf, 4, 5))) +#endif int redisAsyncCommand(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, const char *format, ...); int redisAsyncCommandArgv(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, int argc, const char **argv, const size_t *argvlen); int redisAsyncFormattedCommand(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, const char *cmd, size_t len); |