prog.c: In function ‘main’:
prog.c:10:19: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘char *’ [-Werror=format=]
printf("value = %d", testval);
^
prog.c: In function ‘testfunc’:
prog.c:4:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors