Re: v2.35.0 DEVELOPER=1 regression
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 14, 2022, 23:57 UTC
- Message-ID
- <xmqqh7a598g3.fsf@gitster.g>
- In-Reply-To
- <xmqqk0f29e6w.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes: > >>> Wow, that sounds horribly broken. >> >> Yes, but it's also working as designed :) We're erroring because the C >> library headers on the OS aren't C99-compliant. That it would apply to >> only git.git's sources was only ever wishful thinking. > > No, C library supporting only C11 is perfectly fine. On such a > system, the compiler shouldn't even support -std=gnu99. That is > what I consider broken.
Or, the system headers should be arranged in such a way that depending on __STDC_VERSION__, it should refrain from using features of the language that is not supported. So supporting -std=gnu99 in their compilers may not be a bug---but in that case, their system headers are buggy.
Anyway. I think <xmqqzgny7xo7.fsf@gitster.g> shows a viable way forward.