From 7895c3bc4f6c73e44ba77eeca1375ee73cb467a3 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 24 Sep 2020 07:52:20 -0400 Subject: [PATCH] lib: Tell the compiler we don't care about the return code When calling yang_snodes_iterate_subtree we don't care about the return code. So explicitly say we don't care so that SA tools can be on the same page as us. Signed-off-by: Donald Sharp --- lib/northbound.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/northbound.c b/lib/northbound.c index 99c6ab57ec..5816c162d8 100644 --- a/lib/northbound.c +++ b/lib/northbound.c @@ -122,9 +122,9 @@ static int nb_node_new_cb(const struct lys_node *snode, void *arg) if (CHECK_FLAG(snode->nodetype, LYS_CONTAINER | LYS_LIST)) { bool config_only = true; - yang_snodes_iterate_subtree(snode, NULL, - nb_node_check_config_only, 0, - &config_only); + (void)yang_snodes_iterate_subtree(snode, NULL, + nb_node_check_config_only, 0, + &config_only); if (config_only) SET_FLAG(nb_node->flags, F_NB_NODE_CONFIG_ONLY); } -- 2.39.5