Re: git: 685866bbe13d - main - routing: fix build without ROUTE_MPATH

From: Alexander V. Chernikov <melifaro_at_ipfw.ru>
Date: Thu, 11 Aug 2022 09:49:07 UTC

> On 11 Aug 2022, at 10:27, Gary Jennejohn <garyj@gmx.de> wrote:
> 
> I did a buildkernel and got this warning message:
> 
> /usr/src/sys/net/route/route_ctl.c:787:1: warning: unused function 'add_route_flags_mpath' [-Wunused-function]
> add_route_flags_mpath(struct rib_head *rnh, struct rtentry *rt,
Thank you for the report!
Should be fixed by 258828d03b9f.
> ^
> 1 warning generated.
> 
> This is because the function is only called if ROUTE_MPATH is defined,
> but the forward declaration and implementation of add_route_flags_mpath
> are not gated with #ifdef ROUTE_MPATH.
> 
> --
> Gary Jennejohn