summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorOzan Tezcan <ozantezcan@gmail.com>2022-06-01 16:21:45 +0300
committerGitHub <noreply@github.com>2022-06-01 16:21:45 +0300
commitc81b5e5594e7a57753bbfd5e140ba8bf0732b987 (patch)
tree7b70e5762f081163f7d18529094700da80901638 /deps
parentdf558618389a578b5eff7f60c9526e64952b74fb (diff)
downloadredis-c81b5e5594e7a57753bbfd5e140ba8bf0732b987.tar.gz
Fix Lua compile warning (#10805)
Apparently, GCC 11.2.0 has a new fancy warning for misleading indentations. It prints a warning when BRET(b) is on the same line as the loop.
Diffstat (limited to 'deps')
-rw-r--r--deps/lua/src/lua_bit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/lua/src/lua_bit.c b/deps/lua/src/lua_bit.c
index 690df7d3c..9f83b8594 100644
--- a/deps/lua/src/lua_bit.c
+++ b/deps/lua/src/lua_bit.c
@@ -98,7 +98,8 @@ static int bit_bnot(lua_State *L) { BRET(~barg(L, 1)) }
#define BIT_OP(func, opr) \
static int func(lua_State *L) { int i; UBits b = barg(L, 1); \
- for (i = lua_gettop(L); i > 1; i--) b opr barg(L, i); BRET(b) }
+ for (i = lua_gettop(L); i > 1; i--) b opr barg(L, i); \
+ BRET(b) }
BIT_OP(bit_band, &=)
BIT_OP(bit_bor, |=)
BIT_OP(bit_bxor, ^=)