GCC gives a warning implicit declaration of function foo
when you use foo()
before its declaration. Is there any GCC flag that would make treat this warning as error and stop compilation? Sometime it would save you some debugging work...
-Werror
will treat all warnings as errors. You can be more specific with
-Werror-implicit-function-declaration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With