cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE 1.14.1 disable -Wimplicit-function-declaration

RPiwa.1
Associate II

Hi

 

I use STM32CubeIDE 1.14.1.

I can compile my project successfully.

But I got below message. I would like to close this warning.

I tried to uncheck Enable all warning about questionable constructions (-Wall) at MCU GCC Compiler.

It still shows warning message.

Please suggest me to disable it.

../Core/Src/main.c: In function 'main':
../Core/Src/main.c:212:3: warning: implicit declaration of function 'Info_Rev' [-Wimplicit-function-declaration]
212 | Info_Rev();
| ^~~~~~~~

 

Thank you

1 REPLY 1
Andrew Neil
Evangelist III

Rather than disable the warning, why not just fix the issue?

Provide a proper prototype for Info_Rev().

 

https://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Warning-Options.html