From c81b5e5594e7a57753bbfd5e140ba8bf0732b987 Mon Sep 17 00:00:00 2001 From: Ozan Tezcan Date: Wed, 1 Jun 2022 16:21:45 +0300 Subject: [PATCH] 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. --- deps/lua/src/lua_bit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, ^=)