diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-08-15 05:49:29 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-08-21 20:34:58 +0200 |
commit | bd27ea43e9972d1c8ae794441fd2db83a8d896fc (patch) | |
tree | 62796d85e5e98b9919fba7159fda7349fb036ac1 /tests | |
parent | Merge pull request #2881 from donaldsharp/external_removal (diff) | |
download | frr-bd27ea43e9972d1c8ae794441fd2db83a8d896fc.tar.xz frr-bd27ea43e9972d1c8ae794441fd2db83a8d896fc.zip |
build: wrap "fallthrough" attr
This generates a warning on gcc versions before 7.0.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bgpd/test_capability.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bgpd/test_capability.c b/tests/bgpd/test_capability.c index 4612bdc26..fef7d39ff 100644 --- a/tests/bgpd/test_capability.c +++ b/tests/bgpd/test_capability.c @@ -821,7 +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)); + _FALLTHROUGH case OPT_PARAM: printf("len: %u\n", len); /* peek_for_as4 wants getp at capibility*/ |