https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92209
Bug ID: 92209 Summary: Imprecise column number for -Wstrict-prototypes Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tangyixuan at mail dot dlut.edu.cn Target Milestone: --- GCC outputs a wrong column number of a declared function warning: $ gcc-trunk -Wstrict-prototypes -c s.c s.c:1:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 1 | static int func_1(); | ^~~~~~ gcc version 10.0.0 20191020 (experimental) (GCC) target: Ubuntu 4.8.5-4ubuntu8~14.04.2 $ clang -Wstrict-prototypes -c s.c s.c:1:18: warning: this function declaration is not a prototype [-Wstrict-prototypes] static int func_1(); ^ void 1 warning generated. $ cat s.c static int func_1();