From c0f75b1c799775a0f2967d6eaae4023b0570a282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 20 Oct 2021 08:10:54 +0200 Subject: [PATCH] dshot: add missing '#pragma GCC diagnostic push' --- platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c b/platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c index 457bd98c2b..00e60fe65a 100644 --- a/platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c +++ b/platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c @@ -100,6 +100,7 @@ int up_dshot_init(uint32_t channel_mask, unsigned dshot_pwm_freq) } // we know the uint8_t* cast to uint32_t* is fine, since we're aligned to cache line size +#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wcast-align" dshot_burst_buffer[timer] = (uint32_t *)&dshot_burst_buffer_array[buffer_offset]; #pragma GCC diagnostic pop