diff options
author | Ozan Tezcan <ozantezcan@gmail.com> | 2022-06-01 16:21:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 16:21:45 +0300 |
commit | c81b5e5594e7a57753bbfd5e140ba8bf0732b987 (patch) | |
tree | 7b70e5762f081163f7d18529094700da80901638 | |
parent | df558618389a578b5eff7f60c9526e64952b74fb (diff) | |
download | redis-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.
-rw-r--r-- | deps/lua/src/lua_bit.c | 3 |
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, ^=) |