From 8881d722da1adac3a04949a63a85e23689e9b3eb Mon Sep 17 00:00:00 2001 From: Vincent JARDIN Date: Sun, 8 Oct 2017 23:43:59 +0200 Subject: [PATCH] rfapi: fix clang warning When DEBUG_L2_EXTRA is not set, clang emits a warning because rc is not used. Signed-off-by: Vincent Jardin --- bgpd/rfapi/rfapi_monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bgpd/rfapi/rfapi_monitor.c b/bgpd/rfapi/rfapi_monitor.c index 6a7595443a..47a72d75fd 100644 --- a/bgpd/rfapi/rfapi_monitor.c +++ b/bgpd/rfapi/rfapi_monitor.c @@ -1378,6 +1378,8 @@ struct route_node *rfapiMonitorEthAdd(struct bgp *bgp, #if DEBUG_L2_EXTRA vnc_zlog_debug_verbose("%s: inserted rfd=%p mon_eth=%p, rc=%d", __func__, rfd, val, rc); +#else + (void)rc; #endif /* -- 2.39.5