From 49b6f918e81b81934512dd09d013ed0795ad16ea Mon Sep 17 00:00:00 2001 From: "chenyangyang.cy" Date: Thu, 21 Sep 2023 17:27:30 +0800 Subject: [PATCH] Fix ci err --- .github/workflows/ci.yml | 2 +- src/tairhash.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4778ab3..3ae0499 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -185,7 +185,7 @@ jobs: git clone https://github.com/redis/redis cd redis git checkout 7.0 - make SANITIZER=address REDIS_CFLAGS='-Werror' BUILD_TLS=yes + make SANITIZER=address REDIS_CFLAGS='-Werror' BUILD_TLS=yes MALLOC=libc - name: Install LCOV run: | sudo apt-get --assume-yes install lcov > /dev/null diff --git a/src/tairhash.c b/src/tairhash.c index bd97c84..08b29bc 100755 --- a/src/tairhash.c +++ b/src/tairhash.c @@ -55,13 +55,13 @@ void _moduleAssert(const char *estr, const char *file, int line) { *((char *)-1) = 'x'; } -inline struct TairHashVal *createTairHashVal(void) { +struct TairHashVal *createTairHashVal(void) { struct TairHashVal *o; o = RedisModule_Calloc(1, sizeof(*o)); return o; } -inline void tairHashValRelease(struct TairHashVal *o) { +void tairHashValRelease(struct TairHashVal *o) { if (o) { if (o->value) { RedisModule_FreeString(NULL, o->value);