https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68344
Eric Gallager <egall at gwmail dot gwu.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egall at gwmail dot gwu.edu --- Comment #1 from Eric Gallager <egall at gwmail dot gwu.edu> --- I think -Wstrict-prototypes does what you're looking for here: $ /usr/local/bin/gcc -Wold-style-declaration -Wold-style-definition -Wstrict-prototypes -Wmissing-parameter-type -Wmissing-prototypes -std=c11 -pedantic -c pr68344.c pr68344.c:1:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] int a(); ^