From: Martin Mares Date: Mon, 9 Apr 2018 09:31:04 +0000 (+0200) Subject: conf.h: Added a hack to silence GCC's warnings about uninitialized fields X-Git-Tag: v6.5.10~9 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=64cbf38462183a17d5103be3c30264463785e9e6;p=libucw.git conf.h: Added a hack to silence GCC's warnings about uninitialized fields --- diff --git a/ucw/conf.h b/ucw/conf.h index f3a85066..acd7460b 100644 --- a/ucw/conf.h +++ b/ucw/conf.h @@ -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