summaryrefslogtreecommitdiffstats
path: root/lib/frrlua.c
diff options
context:
space:
mode:
authoranlan_cs <anlan_cs@tom.com>2021-08-08 03:34:29 +0200
committeranlan_cs <anlan_cs@tom.com>2021-08-08 03:57:55 +0200
commit4b0d12679416b52ff4296a41b8acb813569f8b5a (patch)
tree5eef3a4cd2c2bfccd1571d75ed0dd79cb6bc9938 /lib/frrlua.c
parentMerge pull request #9312 from opensourcerouting/topo-small-fixes (diff)
downloadfrr-4b0d12679416b52ff4296a41b8acb813569f8b5a.tar.xz
frr-4b0d12679416b52ff4296a41b8acb813569f8b5a.zip
lib: Fix coverity warning of return value
Suppress coverity warning on unchecked str2sockunion's return value. Signed-off-by: anlan_cs <anlan_cs@tom.com>
Diffstat (limited to '')
-rw-r--r--lib/frrlua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c
index 96d726944..928780f2d 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);