diff options
author | anlan_cs <anlan_cs@tom.com> | 2024-04-15 10:13:20 +0200 |
---|---|---|
committer | anlan_cs <anlan_cs@tom.com> | 2024-04-15 10:15:33 +0200 |
commit | 399de5c15c7b2db0f5f877759b4010dee8808010 (patch) | |
tree | ba57f8dc1978ea5bf28754d520d0ca62e614edce /bgpd/bgp_route.c | |
parent | Merge pull request #15592 from pguibert6WIND/fix_srte_color (diff) | |
download | frr-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.c | 2 |
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) |