]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: Let compiler know this was an intentionall fallthrough
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 25 Jul 2018 19:00:52 +0000 (15:00 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 25 Jul 2018 19:00:52 +0000 (15:00 -0400)
Let the compiler know that this code intentionally fell
through to the next case statement in a switch.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
tests/bgpd/test_capability.c

index c75a699a165fe5719497707303a37d0afea4eaa4..4612bdc26b0adc737e792c74c2255639153433a0 100644 (file)
@@ -821,6 +821,7 @@ static void parse_test(struct peer *peer, struct test_segment *t, int type)
        switch (type) {
        case CAPABILITY:
                len += 2; /* to cover the OPT-Param header */
+               __attribute__ ((fallthrough));
        case OPT_PARAM:
                printf("len: %u\n", len);
                /* peek_for_as4 wants getp at capibility*/