]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: bgp_attr.c GCC 7.0 with --werror needs explicit fall-thru comment
authorMartin Winter <mwinter@opensourcerouting.org>
Wed, 29 Nov 2017 09:29:04 +0000 (01:29 -0800)
committerMartin Winter <mwinter@opensourcerouting.org>
Tue, 5 Dec 2017 08:30:13 +0000 (00:30 -0800)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
bgpd/bgp_attr.c

index 1f0662bfb01c519d16eb921a5b8fe268e51644a2..e80889500f089df249d0dbeb656f51124b532bb4 100644 (file)
@@ -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 */