From eb439e89f13913ce98d706ac6741eea6d00b8d73 Mon Sep 17 00:00:00 2001 From: Martin Mathieson Date: Tue, 24 Mar 2020 10:50:26 +0000 Subject: wslua: WSLUA_BIT_OP_FUNC macro already does return . epan/wslua/wslua_int64.c:445: style: Consecutive return, break, continue, goto or throw statements are unnecessary. epan/wslua/wslua_int64.c:454: style: Consecutive return, break, continue, goto or throw statements are unnecessary. epan/wslua/wslua_int64.c:463: style: Consecutive return, break, continue, goto or throw statements are unnecessary. epan/wslua/wslua_int64.c:966: style: Consecutive return, break, continue, goto or throw statements are unnecessary. epan/wslua/wslua_int64.c:975: style: Consecutive return, break, continue, goto or throw statements are unnecessary. epan/wslua/wslua_int64.c:984: style: Consecutive return, break, continue, goto or throw statements are unnecessary. Change-Id: I98d8c07cb13c523ba21469b7ad84ff4738764d49 Reviewed-on: https://code.wireshark.org/review/36556 Petri-Dish: Martin Mathieson Tested-by: Petri Dish Buildbot Reviewed-by: Martin Mathieson --- epan/wslua/wslua_int64.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/epan/wslua/wslua_int64.c b/epan/wslua/wslua_int64.c index 0bc05d33e2..803a09d403 100644 --- a/epan/wslua/wslua_int64.c +++ b/epan/wslua/wslua_int64.c @@ -442,7 +442,6 @@ WSLUA_METHOD Int64_band(lua_State* L) { @since 1.11.3 */ WSLUA_BIT_OP_FUNC(Int64,&=); - WSLUA_RETURN(1); /* The `Int64` object. */ } WSLUA_METHOD Int64_bor(lua_State* L) { @@ -451,7 +450,6 @@ WSLUA_METHOD Int64_bor(lua_State* L) { @since 1.11.3 */ WSLUA_BIT_OP_FUNC(Int64,|=); - WSLUA_RETURN(1); /* The `Int64` object. */ } WSLUA_METHOD Int64_bxor(lua_State* L) { @@ -460,7 +458,6 @@ WSLUA_METHOD Int64_bxor(lua_State* L) { @since 1.11.3 */ WSLUA_BIT_OP_FUNC(Int64,^=); - WSLUA_RETURN(1); /* The `Int64` object. */ } WSLUA_METHOD Int64_lshift(lua_State* L) { @@ -963,7 +960,6 @@ WSLUA_METHOD UInt64_band(lua_State* L) { @since 1.11.3 */ WSLUA_BIT_OP_FUNC(UInt64,&=); - WSLUA_RETURN(1); /* The `UInt64` object. */ } WSLUA_METHOD UInt64_bor(lua_State* L) { @@ -972,7 +968,6 @@ WSLUA_METHOD UInt64_bor(lua_State* L) { @since 1.11.3 */ WSLUA_BIT_OP_FUNC(UInt64,|=); - WSLUA_RETURN(1); /* The `UInt64` object. */ } WSLUA_METHOD UInt64_bxor(lua_State* L) { @@ -981,7 +976,6 @@ WSLUA_METHOD UInt64_bxor(lua_State* L) { @since 1.11.3 */ WSLUA_BIT_OP_FUNC(UInt64,^=); - WSLUA_RETURN(1); /* The `UInt64` object. */ } WSLUA_METHOD UInt64_lshift(lua_State* L) { -- cgit v1.2.3