prog.c: In function ‘bar’:
prog.c:11:16: error: ISO C forbids ‘return’ with expression, in function returning void [-Werror=pedantic]
return foo(); // Note this return statement.
^~~~~
prog.c:8:6: note: declared here
void bar (void)
^~~
cc1: all warnings being treated as errors