[PATCH] C99 initializers for drivers/mtd files
Jörn Engel
joern at wohnheim.fh-wedel.de
Mon Mar 3 16:06:13 EST 2003
On Mon, 3 March 2003 13:49:27 -0700, Thayne Harbaugh wrote:
>
> GCC 2.95 does not understand C99 and will fail to compile kernels
> that require this syntax.
You had me for a moment. But at least Debians gcc 2.95.4 does not fail
too badly:
joern at Limerick:~/foo$ cat foo.c
struct foo {
int bar;
int baz;
};
struct foo fufu = {
.bar = 0,
.baz = 0
};
joern at Limerick:~/foo$ gcc --version
2.95.4
joern at Limerick:~/foo$ gcc -c foo.c
joern at Limerick:~/foo$ ls
foo.c foo.o
joern at Limerick:~/foo$
What compiler do you have that breaks with C99 initializers?
Jörn
--
Invincibility is in oneself, vulnerability is in the opponent.
-- Sun Tzu
More information about the linux-mtd
mailing list