diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/command.c | 2 | ||||
| -rw-r--r-- | lib/ferr.c | 2 | ||||
| -rw-r--r-- | lib/frrscript.c | 4 | ||||
| -rw-r--r-- | lib/northbound.c | 3 |
4 files changed, 6 insertions, 5 deletions
diff --git a/lib/command.c b/lib/command.c index a429510059..c4db045633 100644 --- a/lib/command.c +++ b/lib/command.c @@ -315,7 +315,7 @@ void _install_element(enum node_type ntype, const struct cmd_element *cmd) return; } - assert(hash_get(cnode->cmd_hash, (void *)cmd, hash_alloc_intern)); + (void)hash_get(cnode->cmd_hash, (void *)cmd, hash_alloc_intern); if (cnode->graph_built || !defer_cli_tree) { struct graph *graph = graph_new(); diff --git a/lib/ferr.c b/lib/ferr.c index e5b6d7552d..9d79f38b7c 100644 --- a/lib/ferr.c +++ b/lib/ferr.c @@ -86,7 +86,7 @@ void log_ref_add(struct log_ref *ref) frr_with_mutex(&refs_mtx) { while (ref[i].code != END_FERR) { - hash_get(refs, &ref[i], hash_alloc_intern); + (void)hash_get(refs, &ref[i], hash_alloc_intern); i++; } } diff --git a/lib/frrscript.c b/lib/frrscript.c index 8add44c19e..a19bd0c3db 100644 --- a/lib/frrscript.c +++ b/lib/frrscript.c @@ -333,7 +333,7 @@ void frrscript_register_type_codec(struct frrscript_codec *codec) assert(!"Type codec double-registered."); } - assert(hash_get(codec_hash, &c, codec_alloc)); + (void)hash_get(codec_hash, &c, codec_alloc); } void frrscript_register_type_codecs(struct frrscript_codec *codecs) @@ -399,7 +399,7 @@ int frrscript_load(struct frrscript *fs, const char *function_name, /* Add the Lua function state to frrscript */ struct lua_function_state key = {.name = function_name, .L = L}; - hash_get(fs->lua_function_hash, &key, lua_function_alloc); + (void)hash_get(fs->lua_function_hash, &key, lua_function_alloc); return 0; fail: diff --git a/lib/northbound.c b/lib/northbound.c index 2cc7ac6ea1..ccfc3840ec 100644 --- a/lib/northbound.c +++ b/lib/northbound.c @@ -2216,7 +2216,8 @@ void nb_running_move_tree(const char *xpath_from, const char *xpath_to) strlcpy(entry->xpath, newpath, sizeof(entry->xpath)); XFREE(MTYPE_TMP, newpath); - hash_get(running_config_entries, entry, hash_alloc_intern); + (void)hash_get(running_config_entries, entry, + hash_alloc_intern); } list_delete(&entries); |
