From: anlan_cs Date: Sun, 8 Aug 2021 01:34:29 +0000 (-0400) Subject: lib: Fix coverity warning of return value X-Git-Tag: base_8.1~226^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4b0d12679416b52ff4296a41b8acb813569f8b5a;p=matthieu%2Ffrr.git lib: Fix coverity warning of return value Suppress coverity warning on unchecked str2sockunion's return value. Signed-off-by: anlan_cs --- diff --git a/lib/frrlua.c b/lib/frrlua.c index 96d7269440..928780f2d4 100644 --- a/lib/frrlua.c +++ b/lib/frrlua.c @@ -240,7 +240,7 @@ void lua_pushsockunion(lua_State *L, const union sockunion *su) void lua_decode_sockunion(lua_State *L, int idx, union sockunion *su) { lua_getfield(L, idx, "string"); - str2sockunion(lua_tostring(L, -1), su); + (void)str2sockunion(lua_tostring(L, -1), su); lua_pop(L, 1); /* pop the table */ lua_pop(L, 1);