compilation: ignore errors in HAL when compiling with -Werror

This commit is contained in:
Daniel Fekete 2017-05-27 15:26:36 +02:00
parent 6d95fbcbe5
commit b897bedc99
2 changed files with 7 additions and 0 deletions

View File

@ -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"

View File

@ -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"