Hi all,
Is this a feature or bug of 8c? Look at this:
term% cat t.c
#include <u.h>
#include <libc.h>
#define ARGS(list) list
void foo ARGS((char));
void foo1 ARGS((int));
void main(void)
{
foo('s');
foo1(1);
exits(nil);
}
void foo (b)
char b;
{
}
void foo1 (b)
int b;
{
}
term% 8c -FVw t.c
t.c:17 function inconsistently declared: foo
warning: t.c:17 param declared and not used: b
warning: t.c:22 param declared and not used: b
My question is: Why I get the "function inconsistently declared" error?
or Why I'm not get the same error about foo1?
Lee