From 4b0d12679416b52ff4296a41b8acb813569f8b5a Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Sat, 7 Aug 2021 21:34:29 -0400 Subject: [PATCH] lib: Fix coverity warning of return value Suppress coverity warning on unchecked str2sockunion's return value. Signed-off-by: anlan_cs --- lib/frrlua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5