Re: [PATCH] 2.3.41 - cleanup file_operations structs

From: Pauline Middelink (middelink@polyware.nl)
Date: Mon Jan 31 2000 - 02:57:42 EST


On Mon, 31 Jan 31 2000 around 08:11:11 +0100, almesber@lrc.di.epfl.ch wrote:
> James Manning wrote:
> > As it stands, gcc 2.7.2.3 is still our baseline compiler so I'd rather
> > keep things compatible with that my design, not by #ifdef.
>
> $ cat z.c
> #include <stdio.h>
>
>
> struct foo {
> int a,b;
> } bar = {
> .a = 5,
> .b = 7,
> };

This doesn't say much. A better test would be to init the members
in the reverse order. It could be the compiler simple skipped the
labels :) And the extra , after the b member seems suspicious...

(Not that egcs-1.1.2 complains at all..)

    Met vriendelijke groet,
        Pauline Middelink

-- 
PGP Key fingerprint = DE 6B D0 D9 19 AD A7 A0  58 A3 06 9D B6 34 39 E2
For more details look at my website http://www.polyware.nl/~middelink

- 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.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:27 EST