cancel
Showing results for 
Search instead for 
Did you mean: 

How to Ignore -Wsign-conversion Warning for core_cm4.h in STM32CubeIDE?

Zakhan
Associate

I've added the following GCC compiler flags in STM32CubeIDE: -Wall, -Wextra, -Wconversion, -Wpedantic, -Wshadow, and -Wstrict-prototypes. However, I'm encountering a -Wsign-conversion warning in the core_cm4.h system file. How can I ignore this warning while keeping the other warnings active?

2 REPLIES 2
brokenagain
Associate

kicking the tumbleweed, anyone have any suggestions?

Pavel A.
Evangelist III

To ignore -Wsign-conversion add option -Wno-sign-conversion