From 0ba256f62559cfb8bc86d74d96d6fc07e5558a52 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 21 Sep 2020 11:11:08 +1000 Subject: [PATCH] HAL_ChibiOS: fixed warning on gcc9 packed structure can be misaligned --- libraries/AP_HAL_ChibiOS/SoftSigReader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/SoftSigReader.h b/libraries/AP_HAL_ChibiOS/SoftSigReader.h index e39ed24ec0..fd873466e7 100644 --- a/libraries/AP_HAL_ChibiOS/SoftSigReader.h +++ b/libraries/AP_HAL_ChibiOS/SoftSigReader.h @@ -49,7 +49,7 @@ private: uint32_t dmamode; ICUConfig icucfg; ICUDriver* _icu_drv = nullptr; - typedef struct PACKED { + typedef struct { uint32_t w0; uint32_t w1; } pulse_t;