From 880a5d6b55b22f9da635e390040a3b3d3856e0f3 Mon Sep 17 00:00:00 2001 From: jflyper Date: Fri, 16 Aug 2019 00:22:34 +0900 Subject: [PATCH] [H7][LIB] Supress strict aliasing rule warnings on deferencing type-punned pointers --- .../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_spi.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/main/STM32H7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_spi.h b/lib/main/STM32H7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_spi.h index 8ac7d7ecf..41bb1d58e 100755 --- a/lib/main/STM32H7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_spi.h +++ b/lib/main/STM32H7/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_spi.h @@ -17,6 +17,9 @@ ****************************************************************************** */ +// Avoid strict aliasing warnings from deferencing type-punned pointers +#pragma GCC diagnostic ignored "-Wstrict-aliasing" + /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32H7xx_LL_SPI_H #define STM32H7xx_LL_SPI_H