From: Matheus Tavares Bernardino Date: Wed, 03 Jun 2020 02:17:24 GMT Subject: Re: [PATCH] git.c: fix sparse warning Message-ID: In-Reply-To: On Mon, Jun 1, 2020 at 8:27 PM Ramsay Jones wrote: > > > Commit 4acc44d720 (config: add setting to ignore sparsity patterns in > some cmds, 2020-05-27) adds an external symbol definition without a > corresponding external symbol declaration. This causes sparse to > complain: "symbol 'opt_restrict_to_sparse_paths' was not declared. > Should it be static?". > > In order to suppress the warning, #include the 'sparse-checkout.h' > header file, which contains the required extern declaration. > > Signed-off-by: Ramsay Jones > --- > > Hi Matheus, > > If you need to re-roll your 'mt/grep-sparse-checkout' branch, could you > please squash this into the relevant patch. Sure! Thanks for catching this.