Re: [PATCH v5] compat: auto-detect if zlib has uncompress2()
- From
Carlo Arenas <carenas@gmail.com>
- Date
- Jan 25, 2022, 10:11 UTC
- Message-ID
- <CAPUEspheGc2kYkX-T8YUbW7z8v650L83===q29DWZrE823FktA@mail.gmail.com>
- In-Reply-To
- <xmqqlez43mx1.fsf@gitster.g>
On Mon, Jan 24, 2022 at 12:21 PM Junio C Hamano <gitster@pobox.com> wrote:
> > If the question is "name a compiler that breaks and is *still* in > active use", then the answer would be fuzzy (it depends on the > definition of "in active use"), but is useful to find out.
`gcc -pedantic -werror` will abort the build (ISO C forbids an empty translation unit) because an empty translation unit is not syntactically correct code per ISO, as well as clang (ISO C requires a translation unit to contain at least one declaration [-Wempty-translation-unit]).
Carlo