Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git] / test / oldstyle.c
blob1d46f463335eef0940b0b9eba5b5702f20813bcb
1 int f1 (x, y)
3 int z;
5 z = *y; /* 1. Dereference of non-pointer (int): *y */
7 return z + x;
10 int f2 (/*@unused@*/ x) /* 2. Function f2 declared with 1 arg, specified with 2 */
12 return 3;
15 int f3 (x, y)
16 int x;
17 /*@unused@*/ char y; /* 3. Parameter 2, y, of function f3 has inconsistent type */
19 return x;