[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: macOS 12.6.3, static_assert, and vasnprintf compilation failure

From: Alejandro Colomar
Subject: Re: macOS 12.6.3, static_assert, and vasnprintf compilation failure
Date: Tue, 7 Feb 2023 15:25:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

Hi Bruno,

On 2/7/23 15:20, Bruno Haible wrote:
Alejandro Colomar wrote:
the last reducts of GCC defaulting to gnu89

The default standard version of GCC doesn't matter. The AC_PROG_CC macro
invocation in arranges to add the suitable command-line options,
so that the C compiler understands C99 (or even C11 if possible).

It matters to me, because nginx (my job) doesn't use autotools, and doesn't specify a language version, so it compiles with whatever the system default is. And we support CentOS7, so we need to support gnu89. I've battled a lot to specify gnu11 in the cc command line, but so far I've repeatedly met a stone wall of unjustified FUD, and the patch didn't make it.

Which means I can't use loop variables or C99 inline. :(




GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]