[Swan-dev] Build issue with rhel7 gcc on commit 297d65c9f

Tuomo Soini tis at foobar.fi
Fri Jun 18 14:29:37 UTC 2021


On Fri, 18 Jun 2021 11:08:56 +0300
Tuomo Soini <tis at foobar.fi> wrote:

> programs/pluto/kernel.c:1581:9:
> error: missing braces around initializer [-Werror=missing-braces]
> 
> This seem to be gcc bug
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
> 
> It looks this this ugly hack would work as a work-around for this:
> 
> struct pfkey_proto_info proto_infos[4] = {{0}};
> 

I worked around this issue with commit f2b7d084181d534.


-- 
Tuomo Soini <tis at foobar.fi>
Foobar Linux services
+358 40 5240030
Foobar Oy <https://foobar.fi/>


More information about the Swan-dev mailing list