summaryrefslogtreecommitdiff
path: root/src/modules/hellotype.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-10-07 13:10:29 +0200
committerantirez <antirez@gmail.com>2016-10-07 13:10:31 +0200
commit3aa816e61a1512d5878040c114d074bc662e03f8 (patch)
tree8d4819abae4a4b0b255ab791bd6f8950851ae6f9 /src/modules/hellotype.c
parent3879923db822789bbb508c171ed20ab2f5d6312f (diff)
downloadredis-3aa816e61a1512d5878040c114d074bc662e03f8.tar.gz
Modules: introduce warning suppression macro for unused args.
Diffstat (limited to 'src/modules/hellotype.c')
-rw-r--r--src/modules/hellotype.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/hellotype.c b/src/modules/hellotype.c
index b33ed81cd..535eb88e1 100644
--- a/src/modules/hellotype.c
+++ b/src/modules/hellotype.c
@@ -227,6 +227,8 @@ void HelloTypeAofRewrite(RedisModuleIO *aof, RedisModuleString *key, void *value
}
void HelloTypeDigest(RedisModuleDigest *digest, void *value) {
+ REDISMODULE_NOT_USED(digest);
+ REDISMODULE_NOT_USED(value);
/* TODO: The DIGEST module interface is yet not implemented. */
}
@@ -237,6 +239,9 @@ void HelloTypeFree(void *value) {
/* This function must be present on each Redis module. It is used in order to
* register the commands into the Redis server. */
int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
+ REDISMODULE_NOT_USED(argv);
+ REDISMODULE_NOT_USED(argc);
+
if (RedisModule_Init(ctx,"hellotype",1,REDISMODULE_APIVER_1)
== REDISMODULE_ERR) return REDISMODULE_ERR;