diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-26 01:14:25 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-26 01:46:40 +0200 | 
| commit | a97986ffba560458b2b1e88b09b31822f78d8542 (patch) | |
| tree | 49ae3ae301d7e1052d69fe0884a565897ca65576 /lib/module.c | |
| parent | e1bd637370df9708af91c699b2510a788625bc5a (diff) | |
*: 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 <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/module.c')
| -rw-r--r-- | lib/module.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/module.c b/lib/module.c index beef791093..b3ab91c4ea 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)  | 
