diff options
author | Donald Sharp <sharpd@nvidia.com> | 2020-10-11 18:38:42 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-11 18:38:42 +0200 |
commit | 147bb9ed610aaa35be1ff2c563b608602e4c7789 (patch) | |
tree | 6c30f6f25ec3bf5c741914a72d8e01faa780875d /ripngd | |
parent | Merge pull request #7222 from idryzhov/fix-debug (diff) | |
download | frr-147bb9ed610aaa35be1ff2c563b608602e4c7789.tar.xz frr-147bb9ed610aaa35be1ff2c563b608602e4c7789.zip |
ripngd: Intentionally ignore return code for str2prefix_ipv6
We are calling str2prefix_ipv6 for a default route. Since
we know this will always succeed we can safely tell the compiler
that we are ok ignoring the return code.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ripngd')
-rw-r--r-- | ripngd/ripng_nb_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ripngd/ripng_nb_config.c b/ripngd/ripng_nb_config.c index 85f378bc9..25bf65f7a 100644 --- a/ripngd/ripng_nb_config.c +++ b/ripngd/ripng_nb_config.c @@ -163,7 +163,7 @@ int ripngd_instance_default_information_originate_modify( ripng = nb_running_get_entry(args->dnode, NULL, true); default_information = yang_dnode_get_bool(args->dnode, NULL); - str2prefix_ipv6("::/0", &p); + (void)str2prefix_ipv6("::/0", &p); if (default_information) { ripng_redistribute_add(ripng, ZEBRA_ROUTE_RIPNG, RIPNG_ROUTE_DEFAULT, &p, 0, NULL, 0); |