From 64cbf38462183a17d5103be3c30264463785e9e6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 9 Apr 2018 11:31:04 +0200 Subject: [PATCH] conf.h: Added a hack to silence GCC's warnings about uninitialized fields --- ucw/conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2