From fab83140caad9190c52fd877db245519b56019b5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 13 Jul 2010 17:37:10 +0200 Subject: [PATCH] Logger: Shut up re-initialization warning of GCC 4.3 --- ucw/log.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ***/ -- 2.39.5