From ec5044feb90b735b814aa4201538423a22869109 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 19 Apr 2015 15:17:02 +0200 Subject: [PATCH] bgpd: fix ecommunity_token initialiser This pulls up ecommunity_token_unknown to be the first enum value (at 0), and uses that as initialiser to get rid of the uninitialised use warning. Signed-off-by: David Lamparter (cherry picked from commit b1672ce858cc9c16fd7cc67b673aa241d9583a59) --- bgpd/bgp_ecommunity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 2a6bb23b2f..f9f11866c8 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -288,10 +288,10 @@ ecommunity_finish (void) /* Extended Communities token enum. */ enum ecommunity_token { + ecommunity_token_unknown = 0, ecommunity_token_rt, ecommunity_token_soo, ecommunity_token_val, - ecommunity_token_unknown }; /* Get next Extended Communities token from the string. */ -- 2.39.5