Subject: Re: ares_init.c:1614: error: 'for' loop initial declaration used outside C99 mode

Re: ares_init.c:1614: error: 'for' loop initial declaration used outside C99 mode

From: Zan Lynx <zlynx_at_acm.org>
Date: Sat, 18 Jul 2020 12:02:39 -0600

On 7/18/20 8:37 AM, Brad House wrote:

> Yes, c89 is still the goal. It appears this was missed in a PR pull
> review at some point.  This code has been around a long time for iOS,
> but it was just recently allowed to be used on MacOS too.
>
> -Brad

I would suggest adding "-std=c89 -pedantic" to the default CFLAGS.

I think those flags should have a config-time compile check. Some
compilers like "pcc" don't seem to have the "-std" flag.

-- 
                 Knowledge is Power -- Power Corrupts
                         Study Hard -- Be Evil
Received on 2020-07-18