summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authoranlan_cs <anlan_cs@tom.com>2024-04-15 10:13:20 +0200
committeranlan_cs <anlan_cs@tom.com>2024-04-15 10:15:33 +0200
commit399de5c15c7b2db0f5f877759b4010dee8808010 (patch)
treeba57f8dc1978ea5bf28754d520d0ca62e614edce /bgpd/bgp_route.c
parentMerge pull request #15592 from pguibert6WIND/fix_srte_color (diff)
downloadfrr-399de5c15c7b2db0f5f877759b4010dee8808010.tar.xz
frr-399de5c15c7b2db0f5f877759b4010dee8808010.zip
bgpd: fix compile error
This is happening when configuring with `--disable-bgp-vnc`: ``` ./bgpd/bgp_route.c:3342:23: error: unused variable ā€˜pā€™ [-Werror=unused-variable] 3342 | const struct prefix *p = bgp_dest_get_prefix(dest); ``` Signed-off-by: anlan_cs <anlan_cs@tom.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 97883418e..0a865d709 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -3339,7 +3339,9 @@ static void bgp_process_main_one(struct bgp *bgp, struct bgp_dest *dest,
return;
}
+#ifdef ENABLE_BGP_VNC
const struct prefix *p = bgp_dest_get_prefix(dest);
+#endif
debug = bgp_debug_bestpath(dest);
if (debug)