compilation: ignore errors in HAL when compiling with -Werror
This commit is contained in:
parent
6d95fbcbe5
commit
b897bedc99
|
@ -1,5 +1,9 @@
|
|||
#include "stm32_build_defines.h"
|
||||
|
||||
// Ignore HAL errors when compiling with -Werror
|
||||
#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||
#pragma GCC diagnostic ignored "-Wparentheses"
|
||||
|
||||
#ifdef STM32F0
|
||||
#include "stm32f0xx_hal.c"
|
||||
#include "stm32f0xx_hal_adc.c"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#include "stm32_build_defines.h"
|
||||
|
||||
// Ignore HAL errors when compiling with -Werror
|
||||
#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||
|
||||
#ifdef STM32F0
|
||||
#include "stm32f0xx_hal_adc_ex.c"
|
||||
#include "stm32f0xx_hal_cortex.c"
|
||||
|
|
Loading…
Reference in New Issue