Merge pull request #8713 from jflyper/bfdev-h7-fix-ll-for-size-sensitive-spi-reg

[H7][LIB] Suppress warnings on type-punned pointers (LL-SPI)
This commit is contained in:
Dominic Clifton 2019-08-16 18:30:00 +02:00 committed by GitHub
commit 064b578d43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,9 @@
****************************************************************************** ******************************************************************************
*/ */
// Avoid strict aliasing warnings from deferencing type-punned pointers
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
/* Define to prevent recursive inclusion -------------------------------------*/ /* Define to prevent recursive inclusion -------------------------------------*/
#ifndef STM32H7xx_LL_SPI_H #ifndef STM32H7xx_LL_SPI_H
#define STM32H7xx_LL_SPI_H #define STM32H7xx_LL_SPI_H