routing: fix non-debug build

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2022-08-11 14:12:59 +00:00
parent 8e9ca1379e
commit 69077c81e5

View File

@ -609,7 +609,7 @@ int
rib_copy_route(struct rtentry *rt, const struct route_nhop_data *rnd_src,
struct rib_head *rh_dst, struct rib_cmd_info *rc)
{
struct nhop_object *nh_src = rnd_src->rnd_nhop;
struct nhop_object __diagused *nh_src = rnd_src->rnd_nhop;
int error;
MPASS((nh_src->nh_flags & NHF_MULTIPATH) == 0);