Re: [PATCH 0/6] Compile cleanly in pedantic mode
- From
Beat Bolli <dev+git@drbeat.li>
- Date
- Jul 10, 2018, 07:34 UTC
- Message-ID
- <3f0ab3f42606d2251a6574d6fb45bf11@drbeat.li>
- In-Reply-To
- <xmqqd0vwaxrq.fsf@gitster-ct.c.googlers.com>
Hi Junio
Am 09.07.2018 23:45, schrieb Junio C Hamano:
Show 13 quoted lines
> Beat Bolli <dev+git@drbeat.li> writes:
>
>> While developing 6aaded550 ("builtin/config: work around an unsized
>> array forward declaration", 2018-07-05), I have compiled Git with
>> CFLAGS="-std=c99 -pedantic".
>
> Nicely done.
>
> With these 6 patches and the USE_PARENCE_AROUND_GETTEXT_N hack, the
> forward decl of the unsized static array you dealt with separately
> becomes the only remaining violation in the codebase, which is good.
>
> Will queue. Thanks.Should we add a "pedantic" flag to DEVOPTS that would simplify building pedantically? It would also have to set USE_PARENS_AROUND_GETTEXT_N so as to not overwhelm the developer with too much output.
Beat