9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 8c's feature or bug?
@ 2007-02-08 17:28 Lee Duhem
  2007-02-08 17:33 ` Charles Forsyth
  0 siblings, 1 reply; 6+ messages in thread
From: Lee Duhem @ 2007-02-08 17:28 UTC (permalink / raw)
  To: 9fans

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-09 10:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-08 17:28 [9fans] 8c's feature or bug? Lee Duhem
2007-02-08 17:33 ` Charles Forsyth
2007-02-08 18:01   ` Lee Duhem
2007-02-08 17:59     ` Russ Cox
2007-02-08 18:48     ` Charles Forsyth
2007-02-09 10:09       ` Lee Duhem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).