[comp.sys.apollo] Pre SR10 BSD4.2 Lint

rblinne@ncrwic.Wichita.NCR.COM (Richard Blinne) (11/24/88)

On our SR 9.7.1 Apollo running Domain/IX BSD4.2 lint appears to have a
problem with functions that have structures or pointers to structures
passing to it.  I tried the following program on our Apollo and on a Sun:


struct foo
{
   int mumble;
};

main()
{
   struct foo *a;
   proc(a);
}

proc(b)
   struct foo *b;
{
}

On Sun's lint I get:

foo.c (9): warning: a may be used before set. 
foo.c (13): warning: argument b unused in function proc.

On the Apollo I get those legitimate messages and the following message:

proc, arg. 1 used inconsistently   foo.c(14)  ::  foo.c(9)

I get the same message if I typedef the structure and the pointer to the
structure.  The program works if I change my struct's to some simple
type like int.  The sys5 lint of Domain/IX works properly on the above
program.  But I don't want to use sys5 I want to use BSD4.x.

The question I have is this.  Does SR10 fix this problem?  Could somebody
out in netland check the above program for me?  We can't change until
Mentor releases their tools for SR10.

Thanks in advance.

Rich Blinne, NCR E&M Wichita