diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2022-01-20 21:54:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 21:54:57 +0300 |
commit | a64a0c37853bfcb257ffb5b26d90a9c74b6e0a8e (patch) | |
tree | d4199604f56727b9da7860243f80e4da6ae090a9 /cluster_library.c | |
parent | bcfbd5b2c4c5021fd8e83e89ea4eb6dbdbe178d7 (diff) |
Fix fallthrough warnings and refactor adding a score (#2049)
* Suppress implicit fallthrough warnings by using an attribute if we
have it and a do { } while(0) if we don't.
* Move duplicated logic for appending a ZSET score to one utility
function.
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cluster_library.c b/cluster_library.c index 6f63d9c7..0dee495d 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -222,6 +222,7 @@ cluster_read_sock_resp(RedisSock *redis_sock, REDIS_REPLY_TYPE type, r->str = estrndup(line_reply, len); r->len = len; } + REDIS_FALLTHROUGH; case TYPE_ERR: return r; case TYPE_BULK: |