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 | Merge pull request #1045 from opensourcerouting/clippy-coverity (diff) | |
download | frr-a97986ffba560458b2b1e88b09b31822f78d8542.tar.xz frr-a97986ffba560458b2b1e88b09b31822f78d8542.zip |
*: 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 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) |