summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-08-15 05:49:29 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2018-08-21 20:34:58 +0200
commitbd27ea43e9972d1c8ae794441fd2db83a8d896fc (patch)
tree62796d85e5e98b9919fba7159fda7349fb036ac1 /tests
parentMerge pull request #2881 from donaldsharp/external_removal (diff)
downloadfrr-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.c2
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*/