2 funcpointer.c: (in function func2)
3 funcpointer.c:13:27: Possibly null storage returned as non-null:
4 (int *)malloc(sizeof(int))
5 funcpointer.c:13:27: Returned storage not completely defined (storage pointed
6 to by [result of malloc] is undefined): (int *)malloc(sizeof(int))
7 funcpointer.c: (in function func5)
8 funcpointer.c:19:28: Immediate address &i returned as implicitly only: &i
9 funcpointer.c: (in function main)
10 funcpointer.c:27:3: Assignment of [function (void) returns int] to f1:
12 funcpointer.c:28:3: Assignment of [function (void) returns int ***] to f1:
14 funcpointer.c:32:3: Assignment of [function (void) returns int *] to f2:
16 funcpointer.c:35:3: Assignment of [function (void) returns int **] to f3 *:
18 funcpointer.c:37:3: Assignment of [function (void) returns int *] to f4 *:
20 funcpointer.c:40:7: Call to non-function (type f1): (t1)
21 funcpointer.c:42:3: Assignment of int *** to int *: xp = (*t1)()
22 funcpointer.c:43:8: Call to non-function (type f4 *): (t4)
23 funcpointer.c:45:3: Assignment of [function (void) returns int] to f6:
25 funcpointer.c:45:3: Invalid left-hand side of assignment (function type f6): t6
26 funcpointer.c:47:3: Invalid left-hand side of assignment (function type f6): t6
27 funcpointer.c:48:10: Function (t6) called with 0 args, expects 2
28 funcpointer.c:49:10: Function (t6) called with 1 args, expects 2
29 funcpointer.c:50:11: Function (t6) called with 1 args, expects 2
30 funcpointer.c:50:10: Function ((t6)(3)) called with 0 args, expects 1
31 funcpointer.c: (in function b)
32 funcpointer.c:82:7: Function h[1] called with 1 args, declared void
34 Finished checking --- 19 code warnings, as expected