From: Vincent JARDIN Date: Sun, 8 Oct 2017 21:43:59 +0000 (+0200) Subject: rfapi: fix clang warning X-Git-Tag: frr-4.0-dev~233^2~7 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8881d722da1adac3a04949a63a85e23689e9b3eb;p=matthieu%2Ffrr.git 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 --- 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 /*