From: Holger Lubitz Date: Tue, 31 Jul 2007 16:42:36 +0000 (+0200) Subject: fix gcc 4.2.1 warning: initialized field overwritten X-Git-Tag: v0.9.3~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdd5fbe3ae47f8003df85da1dc128d78722dbbec;p=thirdparty%2Fipxe.git fix gcc 4.2.1 warning: initialized field overwritten --- diff --git a/src/net/ipv6.c b/src/net/ipv6.c index 3b7429b86..a91cb0690 100644 --- a/src/net/ipv6.c +++ b/src/net/ipv6.c @@ -19,10 +19,7 @@ struct net_protocol ipv6_protocol; /* Unspecified IP6 address */ static struct in6_addr ip6_none = { - .in6_u.u6_addr32[0] = 0, - .in6_u.u6_addr32[1] = 0, - .in6_u.u6_addr32[2] = 0, - .in6_u.u6_addr32[3] = 0, + .in6_u.u6_addr32 = { 0,0,0,0 } }; /** An IPv6 routing table entry */