#include <stdio.h> void main() { m(); } void m() { }
Standard input is empty
prog.c:3:6: error: return type of ‘main’ is not ‘int’ [-Werror=main] void main() ^ prog.c: In function ‘main’: prog.c:7:5: error: implicit declaration of function ‘m’ [-Werror=implicit-function-declaration] m(); ^ prog.c: At top level: prog.c:11:6: error: conflicting types for ‘m’ [-Werror] void m() ^ prog.c:7:5: note: previous implicit declaration of ‘m’ was here m(); ^ cc1: all warnings being treated as errors
Standard output is empty