From: Junio C Hamano Date: Wed, 17 Jul 2019 18:13:04 GMT Subject: Re: [PATCH] range-diff: fix some 'hdr-check' and sparse warnings Message-ID: In-Reply-To: <20190716200101.GA6558@sigill.intra.peff.net> Jeff King 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.