]> mj.ucw.cz Git - libucw.git/commitdiff
conf.h: Added a hack to silence GCC's warnings about uninitialized fields
authorMartin Mares <mj@ucw.cz>
Mon, 9 Apr 2018 09:31:04 +0000 (11:31 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 9 Apr 2018 09:31:04 +0000 (11:31 +0200)
ucw/conf.h

index f3a85066a55b72b6acf48884a00ca52e6386adad..acd7460b110f50250dc88a2d7eaf05466b14da2e 100644 (file)
@@ -305,7 +305,7 @@ struct cf_section {                 /** A section. **/
  * You return an error message or NULL if you succeed.
  **/
 #define CF_COPY(f)     .copy = (cf_copier*) f          /**  **/
-#define CF_ITEMS       .cfg = ( struct cf_item[] )     /** List of sub-items. **/
+#define CF_ITEMS       .flags = 0, .cfg = ( struct cf_item[] ) /** List of sub-items. **/
 #define CF_END         { .cls = CC_END }               /** End of the structure. **/
 /***
  * Declaration of a configuration item