From 21fe4510f9fc7198ac3b4890deb5b8b0eba39dd6 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 6 May 2019 18:24:25 +0000 Subject: [PATCH] bgpd: fix rfapi false compiler warning Signed-off-by: Quentin Young --- bgpd/rfapi/rfapi_import.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c index ad0900c2b..b6d32d36e 100644 --- a/bgpd/rfapi/rfapi_import.c +++ b/bgpd/rfapi/rfapi_import.c @@ -4111,6 +4111,9 @@ static void rfapiProcessPeerDownRt(struct peer *peer, timer_service_func = rfapiWithdrawTimerEncap; break; default: + /* Suppress uninitialized variable warning */ + rt = NULL; + timer_service_func = NULL; assert(0); } -- 2.39.5