Skip to main content
RPiwa.1
Associate II
February 16, 2024
Question

STM32CubeIDE 1.14.1 disable -Wimplicit-function-declaration

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

    This topic has been closed for replies.

    1 reply

    Andrew Neil
    Super User
    February 16, 2024

    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 

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.