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

Tuomo Soini tis at foobar.fi
Fri Jun 18 08:08:56 UTC 2021


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}};

-- 
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