From: Martin Mares Date: Tue, 13 Jul 2010 15:37:10 +0000 (+0200) Subject: Logger: Shut up re-initialization warning of GCC 4.3 X-Git-Tag: v5.0~158 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=fab83140caad9190c52fd877db245519b56019b5;p=libucw.git Logger: Shut up re-initialization warning of GCC 4.3 --- diff --git a/ucw/log.c b/ucw/log.c index 1195a0a5..7a870261 100644 --- a/ucw/log.c +++ b/ucw/log.c @@ -45,8 +45,10 @@ struct log_stream log_stream_default = { .types = ~0U, .msgfmt = LSFMT_DEFAULT, // an empty clist - .substreams.head.next = (cnode *) &log_stream_default.substreams.head, - .substreams.head.prev = (cnode *) &log_stream_default.substreams.head, + .substreams.head = { + .next = (cnode *) &log_stream_default.substreams.head, + .prev = (cnode *) &log_stream_default.substreams.head, + }, }; /*** Registry of streams and their identifiers ***/