From c04002975d36d9a9668863a97fa61e5103209df5 Mon Sep 17 00:00:00 2001 From: John Sully Date: Thu, 21 Mar 2019 21:57:18 +0000 Subject: [PATCH] Compile issues at O0 optimization Former-commit-id: 27a420fbc2ada275376982b880dc8f6da935d53e --- deps/hiredis/sds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/hiredis/sds.h b/deps/hiredis/sds.h index 404f246c4..6b46297c2 100644 --- a/deps/hiredis/sds.h +++ b/deps/hiredis/sds.h @@ -83,7 +83,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]; switch(__builtin_expect((flags&SDS_TYPE_MASK), SDS_TYPE_5)) {