Hi Patrik,

On 08/12/2015 01:08 PM, Patrik Flykt wrote:
> On Tue, 2015-08-11 at 09:00 +0200, Daniel Wagner wrote:
>>  static int prepare_getopt_args(const char *str, struct parse_context *ctx)
>> @@ -1804,6 +1805,12 @@ static int parse_xt_modules(int c, bool invert,
>>  {
>>      struct xtables_match *m;
>>      struct xtables_rule_match *rm;
>> +    struct ipt_entry fw = { 0, };
> 
> gcc says:
> 
> src/iptables.c: In function ‘parse_xt_modules’:
> src/iptables.c:1808:9: error: missing braces around initializer 
> [-Werror=missing-braces]
>   struct ipt_entry fw = { 0, };
>          ^
> src/iptables.c:1808:9: error: (near initialization for ‘fw.ip’) 
> [-Werror=missing-braces]
> src/iptables.c: In function ‘parse_xt_modules’:
> src/iptables.c:1808:9: error: missing braces around initializer 
> [-Werror=missing-braces]
>   struct ipt_entry fw = { 0, };

Blech, my gcc is not complaining here. I guess memset is our friend
here. I'll send an update.

cheers,
daniel
_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to