From a97986ffba560458b2b1e88b09b31822f78d8542 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sat, 26 Aug 2017 01:14:25 +0200 Subject: *: fix compiler warnings Specifically, gcc 4.2.1 on OpenBSD 6.0 warns about these; they're bogus (gcc 4.2, being rather old, isn't quite as "intelligent" as newer versions; the newer ones apply more logic and less warnings.) Signed-off-by: David Lamparter --- lib/module.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/module.c') diff --git a/lib/module.c b/lib/module.c index beef79109..b3ab91c4e 100644 --- a/lib/module.c +++ b/lib/module.c @@ -42,8 +42,10 @@ static struct frrmod_info frrmod_default_info = { .description = "libfrr core module", }; union _frrmod_runtime_u frrmod_default = { - .r.info = &frrmod_default_info, - .r.finished_loading = 1, + .r = { + .info = &frrmod_default_info, + .finished_loading = 1, + }, }; // if defined(HAVE_SYS_WEAK_ALIAS_ATTRIBUTE) -- cgit v1.2.3