File: oldstyle.c

package info (click to toggle)
lclint 1%3A2.4b-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 7,996 kB
  • ctags: 9,589
  • sloc: ansic: 100,034; lex: 2,754; yacc: 2,472; makefile: 835
file content (24 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
int f1 (x, y)
{
  int z;

  z = *y; /* 1. Dereference of non-pointer (int): *y */

  return z + x;
}

int f2 (/*@unused@*/ x) /* 2. Function f2 declared with 1 arg, specified with 2 */
{
  return 3;
}

int f3 (x, y)
   int x;
   /*@unused@*/ char y; /* 3. Parameter 2, y, of function f3 has inconsistent type */
{
  return x;
}