From: Donald Sharp Date: Wed, 25 Jul 2018 19:00:52 +0000 (-0400) Subject: tests: Let compiler know this was an intentionall fallthrough X-Git-Tag: frr-6.1-dev~137^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ccc34deb3830addd15ea8fa0e41e5444bca47815;p=matthieu%2Ffrr.git tests: Let compiler know this was an intentionall fallthrough Let the compiler know that this code intentionally fell through to the next case statement in a switch. Signed-off-by: Donald Sharp --- diff --git a/tests/bgpd/test_capability.c b/tests/bgpd/test_capability.c index c75a699a16..4612bdc26b 100644 --- a/tests/bgpd/test_capability.c +++ b/tests/bgpd/test_capability.c @@ -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*/