Compare commits

...

2 Commits
master ... try

Author SHA1 Message Date
not-a-robot
b7b8984521 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) {
                      ^
```
2016-04-20 15:03:24 +02:00
Jerry Jacobs
62f8f9ffc0 sds.h: Fix compiler warning when adding -Wredundant-decls for sdslen,sdsavail 2016-04-17 20:28:49 +00:00

2
sds.h
View File

@ -60,10 +60,8 @@ static inline size_t sdsavail(const sds s) {
sds sdsnewlen(const void *init, size_t initlen); sds sdsnewlen(const void *init, size_t initlen);
sds sdsnew(const char *init); sds sdsnew(const char *init);
sds sdsempty(void); sds sdsempty(void);
size_t sdslen(const sds s);
sds sdsdup(const sds s); sds sdsdup(const sds s);
void sdsfree(sds s); void sdsfree(sds s);
size_t sdsavail(const sds s);
sds sdsgrowzero(sds s, size_t len); sds sdsgrowzero(sds s, size_t len);
sds sdscatlen(sds s, const void *t, size_t len); sds sdscatlen(sds s, const void *t, size_t len);
sds sdscat(sds s, const char *t); sds sdscat(sds s, const char *t);