On Tue, 2 Aug 2005, Linus Torvalds wrote:
>
> [EMAIL PROTECTED] sparse]$ cat -n test.c
> 1 void f(unsigned int arg)
> 2 {
> 3 }
> [EMAIL PROTECTED] sparse]$ cat -n test.c
> 1 void f(unsigned int arg)
> 2 {
> 3 }
That should have been
[EMAIL PROTECTED] sparse]$ cat -n test2.c
1 void f(void)
2 {
3 }
of course, for this to maek any sense:
> [EMAIL PROTECTED] sparse]$ ./check test.c test2.c
> test.c:1:6: warning: symbol 'f' was not declared. Should it be static?
> test.c:1:6: warning: symbol 'f' was not declared. Should it be static?
> test2.c:1:6: warning: symbol 'f' redeclared with different type
> (originally declared at test.c:1) - incompatible argument 1 (different types)
Duh.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html