]> mj.ucw.cz Git - libucw.git/commitdiff
Logger: Shut up re-initialization warning of GCC 4.3
authorMartin Mares <mj@ucw.cz>
Tue, 13 Jul 2010 15:37:10 +0000 (17:37 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 13 Jul 2010 15:37:10 +0000 (17:37 +0200)
ucw/log.c

index 1195a0a548a31e2f473a5256b06be2a2d7f41527..7a870261d8ac2379f61ecf69aa0cfd296d15eea7 100644 (file)
--- 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 ***/