lint bug?

JP Massar massar at think.ARPA
Thu Nov 21 14:25:10 AEST 1985


Is this a problem with me, with my lint, with all lints, or what?
This was run on a 4.2 BSD VAX/785.
Reply via mail.  I will summarize.  Thanks.

------------------------------------------------------------------------------

typedef enum {A,B,C} Foo;

pfoo (ptr_foo) Foo *ptr_foo;
{
  printf("%d\n",*ptr_foo);
}

main ()
{
  Foo foo = A;
  pfoo(&foo);
}

------------------------------------------------------------------------------

lint test.c

test.c:
pfoo, arg. 1 used inconsistently	test.c(4)  ::  test.c(11)

-- 
-- JP Massar, Thinking Machines Corporation, Cambridge, MA
-- ihnp4!godot!massar, massar at think.com.arpa 
-- 617-876-1111



More information about the Comp.lang.c mailing list