Re: PROBLEM: 2.6.7 does not compile (jfs errors)

From: Leon Woestenberg
Date: Wed Jun 16 2004 - 17:51:06 EST


Hello,

Geert Uytterhoeven wrote:
On Wed, 16 Jun 2004, Dave Kleikamp wrote:
On Wed, 2004-06-16 at 08:39, Perlbroker wrote:
fs/jfs/jfs_dtree.c:389: `temp_table' undeclared (first use in this function)
This was reported in another thread by Tomas Szepe. I don't know why
this sometimes compiles cleanly, but this patch should fix it:
Because newer gcc allows declarations of variables between statements, while
older doesn't?

Yep, the C99 edition of the C standard allows this.

I do not know when GCC started to support this particular C99 'feature' but we may see it popping op more often when "newer gcc"-only developers
commit.

Regards,

Leon.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/