Re: [PATCH] range-diff: fix some 'hdr-check' and sparse warnings
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 17, 2019, 18:13 UTC
- Message-ID
- <xmqq1ryo1qdr.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190716200101.GA6558@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> ... My big question is if we use "{}" for gcc (and
> compatible friends), does that squelch all of the complaints from other
> compilers and tools that might see the "{0}" version? In particular,
> does it work for sparse?Yeah, I agree that it is the most important question. The best solution is not to do the macro, use "= { 0 };" everywhere *and* somehow arrange sparse not to complain about it. I am not sure if the last part is doable, though.