Re: 2.1.114 fails build on i386

Michael Riepe (michael@stud.uni-hannover.de)
Tue, 4 Aug 1998 16:41:24 +0200


On Tue, Aug 04, 1998 at 09:11:25AM -0400, Horst von Brand wrote:
[...]
> What's wrong with placing the offending empty structure at the end again,
> like I proposed earlier?

Empty structs (or initializers) aren't legal (ANSI) C, nor are they
mentioned as a "C extension" anywhere in the GCC documentation. The
only thing GCC explicitly allows is an empty _array_ at the end of a
struct. We could do something like this:

struct foo { int dummy; };

struct bar {
...
struct foo baz[0];
};

Then (and only then) we can blame GCC/EGCS if the kernel doesn't
compile...

-- 
 Michael "Tired" Riepe <Michael.Riepe@stud.uni-hannover.de>
 "All I wanna do is have a little fun before I die"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html