Thread View: net.bugs
1 messages
1 total messages
Started by utzoodecvaxharpoutah-csutah-grth...
Sat, 26 Mar 1983 18:04
lint bug
Author: utzoodecvaxharpoutah-csutah-grth...
Date: Sat, 26 Mar 1983 18:04
Date: Sat, 26 Mar 1983 18:04
35 lines
1090 bytes
1090 bytes
There is a very annoying bug in lint. Given the two input files shown
below, lint produces the error messages
b, arg. 1 used inconsistently tst2.c(8) :: tst1.c(7)
b, arg. 2 used inconsistently tst2.c(8) :: tst1.c(7)
a, arg. 1 used inconsistently tst1.c(5) :: tst2.c(10)
Seems that even though the type foo is declared to be a struct foo in
both files, the fact that struct foo is actually defined in one file
but not the other causes lint to think that the arguments are of
differing types. Anybody know a fix for this?
=Spencer
tst1.c:
typedef struct foo foo;
a(f)
foo * f;
{
foo * g = (foo *)0;
b(f, g);
}
tst2.c:
typedef struct foo {
int a;
} foo;
b(f, g)
foo * f, * g;
{
f = g;
a(f);
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads