1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Remove overshoot in warning suppression introduced in #8713.

This commit is contained in:
mikeller 2019-08-18 08:43:15 +12:00
parent f1cd99e6b6
commit 865713460e

View file

@ -17,9 +17,6 @@
******************************************************************************
*/
// 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
@ -2382,6 +2379,10 @@ __STATIC_INLINE uint32_t LL_SPI_IsEnabledDMAReq_TX(SPI_TypeDef *SPIx)
* @}
*/
// Avoid strict aliasing warnings from deferencing type-punned pointers
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
/** @defgroup SPI_LL_EF_DATA_Management DATA_Management
* @{
*/
@ -2455,6 +2456,8 @@ __STATIC_INLINE void LL_SPI_TransmitData32(SPI_TypeDef *SPIx, uint32_t TxData)
*((__IO uint32_t *)&SPIx->TXDR) = TxData;
}
#pragma GCC diagnostic pop
/**
* @brief Set polynomial for CRC calcul
* @rmtoll CRCPOLY CRCPOLY LL_SPI_SetCRCPolynomial