https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81777
--- Comment #3 from Andrew Pinski ---
Also -Wmissing-declarations helps here to make sure you have a declaration
before an external definition. It will warn as you don't have a declaration for
testarg function in testarg.c.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81777
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81777
--- Comment #1 from jsiebert at poczta dot wp.pl ---
file test.c:
#include "testarg.h"
int main(void)
{
testarg();
return 0;
}