Commit b7b89845 authored by not-a-robot's avatar not-a-robot
Browse files

Auto merge of #408 - xor-gate:fix-redundant-decls, r=<try>

sds.h: Fix compiler warning when adding -Wredundant-decls

Fixes:
```
In file included from /data/files/users/jerry/github/hiredis/read.c:44:0:
/data/files/users/jerry/github/hiredis/sds.h:63:8: warning: redundant redeclaration of 'sdslen' [-Wredundant-decls]
 size_t sdslen(const sds s);
        ^
/data/files/users/jerry/github/hiredis/sds.h:50:22: note: previous definition of 'sdslen' was here
 static inline size_t sdslen(const sds s) {
                      ^
/data/files/users/jerry/github/hiredis/sds.h:66:8: warning: redundant redeclaration of 'sdsavail' [-Wredundant-decls]
 size_t sdsavail(const sds s);
        ^
/data/files/users/jerry/github/hiredis/sds.h:55:22: note: previous definition of 'sdsavail' was here
 static inline size_t sdsavail(const sds s) {
                      ^
```
parents 2139f78c 62f8f9ff
......@@ -60,10 +60,8 @@ static inline size_t sdsavail(const sds s) {
sds sdsnewlen(const void *init, size_t initlen);
sds sdsnew(const char *init);
sds sdsempty(void);
size_t sdslen(const sds s);
sds sdsdup(const sds s);
void sdsfree(sds s);
size_t sdsavail(const sds s);
sds sdsgrowzero(sds s, size_t len);
sds sdscatlen(sds s, const void *t, size_t len);
sds sdscat(sds s, const char *t);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment