diff --git a/STM32/cores/arduino/stm32_HAL/stm32XXxx_hal.c b/STM32/cores/arduino/stm32_HAL/stm32XXxx_hal.c index 79868c7..0bdce46 100644 --- a/STM32/cores/arduino/stm32_HAL/stm32XXxx_hal.c +++ b/STM32/cores/arduino/stm32_HAL/stm32XXxx_hal.c @@ -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" diff --git a/STM32/cores/arduino/stm32_HAL/stm32XXxx_hal_ex.c b/STM32/cores/arduino/stm32_HAL/stm32XXxx_hal_ex.c index 404092f..f06a9e6 100644 --- a/STM32/cores/arduino/stm32_HAL/stm32XXxx_hal_ex.c +++ b/STM32/cores/arduino/stm32_HAL/stm32XXxx_hal_ex.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"