From 4709bbb952c7e939cf17e4463480108f510bfa15 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 19 May 2023 22:15:30 +0200 Subject: [PATCH] sys/net/gnrc_lorawan: make clang happy `clang` doesn't propagate the packed attribute to members. I think this incorrect, but explicitly adding it won't hurt and makes clang happy. So let's have it. --- sys/net/gnrc/link_layer/lorawan/gnrc_lorawan_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/link_layer/lorawan/gnrc_lorawan_crypto.c b/sys/net/gnrc/link_layer/lorawan/gnrc_lorawan_crypto.c index 18fc6e29b9..1109eb9a9d 100644 --- a/sys/net/gnrc/link_layer/lorawan/gnrc_lorawan_crypto.c +++ b/sys/net/gnrc/link_layer/lorawan/gnrc_lorawan_crypto.c @@ -50,7 +50,7 @@ typedef struct __attribute__((packed)) { union { uint32_t u8_pad; le_uint16_t conf_fcnt; - }; + }__attribute__((packed)); uint8_t dir; le_uint32_t dev_addr; le_uint32_t fcnt;