From 26ef6bf6f2de45c9768bf5cd9e574f1c85b355ff Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 26 Oct 2020 11:25:28 -0400 Subject: [PATCH] bgpd: Fix profiles compile issue when not using bfdd When compiling w/ --enable-bfdd=no we get warnings about functions not being used. Add a #if check to include it as needed. Signed-off-by: Donald Sharp --- bgpd/bgp_bfd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c index 67b8018c8e..b566b0ea06 100644 --- a/bgpd/bgp_bfd.c +++ b/bgpd/bgp_bfd.c @@ -601,6 +601,7 @@ static int bgp_bfd_peer_param_type_set(struct peer *peer, return 0; } +#if HAVE_BFDD > 0 /** * Set peer BFD profile configuration. */ @@ -655,6 +656,7 @@ static int bgp_bfd_peer_set_profile(struct peer *peer, const char *profile) return 0; } +#endif /* * bgp_bfd_peer_config_write - Write the peer BFD configuration. -- 2.39.5