https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78068
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-04-18 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed with the simple test case below where GCC could conceivably avoid issuing the hint also because the function cannot be used as a replacement for the call to time(). As declared, nice takes an argument but the call to time() doesn't pass one, and returns void but the call is used in a context where an int is expected. $ cat b.c && gcc -S -Wall b.c void nice (int); int foo (void) { return time (); } b.c: In function ‘foo’: b.c:5:10: warning: implicit declaration of function ‘time’; did you mean ‘nice’? [-Wimplicit-function-declaration] return time (); ^~~~ nice