From: Martin Winter Date: Wed, 29 Nov 2017 09:29:04 +0000 (-0800) Subject: bgpd: bgp_attr.c GCC 7.0 with --werror needs explicit fall-thru comment X-Git-Tag: frr-4.0-dev~110^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=176b30508018c831639220c201ecef946d328035;p=matthieu%2Ffrr.git bgpd: bgp_attr.c GCC 7.0 with --werror needs explicit fall-thru comment Signed-off-by: Martin Winter --- diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 1f0662bfb0..e80889500f 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -1667,7 +1667,11 @@ int bgp_mp_reach_parse(struct bgp_attr_parser_args *args, /* * NOTE: intentional fall through * - for consistency in rx processing + * + * The following comment is to signal GCC this intention + * and supress the warning */ + /* FALLTHRU */ case BGP_ATTR_NHLEN_IPV4: stream_get(&attr->mp_nexthop_global_in, s, IPV4_MAX_BYTELEN); /* Probably needed for RFC 2283 */