diff --git a/src/sds.h b/src/sds.h index 1985fb263..4ae1e4dfd 100644 --- a/src/sds.h +++ b/src/sds.h @@ -98,7 +98,7 @@ struct __attribute__ ((__packed__)) sdshdr64 { #define SDS_HDR(T,s) ((struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T)))) #define SDS_TYPE_5_LEN(f) ((f)>>SDS_TYPE_BITS) -inline size_t sdslen(const sds s) { +static inline size_t sdslen(const sds s) { unsigned char flags = s[-1]; int type = flags & SDS_TYPE_MASK;