prog.c: In function ‘callfun’:
prog.c:18:5: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘void *’ [-Werror=format]
prog.c: In function ‘callffun’:
prog.c:23:5: error: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘void *’ [-Werror=format]
prog.c: In function ‘main’:
prog.c:31:1: error: passing argument 1 of ‘callfun’ from incompatible pointer type [-Werror]
prog.c:16:6: note: expected ‘Fn’ but argument is of type ‘int (*)()’
prog.c:32:1: error: passing argument 1 of ‘callffun’ from incompatible pointer type [-Werror]
prog.c:21:6: note: expected ‘Fn’ but argument is of type ‘float (*)()’
cc1: all warnings being treated as errors