From a1acae92fa6de4148332ca67c5d4bcbb1d9db6ac Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 19 May 2023 22:57:39 +0200 Subject: [PATCH] tests/net/gnrc_sixlowpan_frag_sfr: work around bug in clang --- tests/net/gnrc_sixlowpan_frag_sfr/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/net/gnrc_sixlowpan_frag_sfr/main.c b/tests/net/gnrc_sixlowpan_frag_sfr/main.c index 7a2b932aa7..c2e9504ad5 100644 --- a/tests/net/gnrc_sixlowpan_frag_sfr/main.c +++ b/tests/net/gnrc_sixlowpan_frag_sfr/main.c @@ -285,6 +285,10 @@ static const uint8_t _test_send_frag3[] = { 0x00, 0xbb, /* offset: 187 */ 0x6c, 0x28, 0x16, 0x59, 0xcc, 0x06 }; + +/* compiler bug in clang: _loc_l2 is passed via _vrbe_base to external + * functions and may be used, but clang considers it to be unused */ +__attribute__((used)) static const uint8_t _loc_l2[] = LOC_L2; static const ipv6_addr_t _rem_ll = { .u8 = REM_LL }; static const ipv6_addr_t _rem_gb = { .u8 = REM_GB };