Re: [PATCH 0/4] fix make sparse warning
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 1, 2020, 20:02 UTC
- Message-ID
- <nycvar.QRO.7.76.6.2005012200470.18039@tvgsbejvaqbjf.bet>
- In-Reply-To
- <45522b6a-76a4-a7d9-3cce-a3581aaca899@ramsayjones.plus.com>
Hi,
On Sun, 26 Apr 2020, Ramsay Jones wrote:
Show 26 quoted lines
> On 26/04/2020 04:32, Danh Doan wrote: > > On 2020-04-25 15:13:53+0200, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: > >> Hi Danh, > >> > >> On Thu, 23 Apr 2020, Đoàn Trần Công Danh wrote: > >> > >>> It's happened that I tried to run make check on project that support autoconf. > >>> Git's Makefile told me to run `make sparse` instead. > >>> > >>> I /think/ if we have a rule in Makefile, we should adhere to it. > >>> I also fix another change in ds/blame-on-bloom, which I think it's worth to > >>> fix, see: <20200423133937.GA1984@danh.dev> > >> > >> FWIW there is still an Azure Pipeline building `sparse` for Ubuntu every > >> two weeks: https://dev.azure.com/git/git/_build?definitionId=10&_a=summary > >> > >> I created this Pipeline in order to support the proposed project at > >> https://github.com/gitgitgadget/git/issues/345 which is: teach our CI > >> builds to run `make sparse`. > >> > >> Maybe it is time to tackle that? > > > > I don't think it's ready, yet! > > Heh, not too long ago, the 'master' and 'next' branches were 'sparse clean'. > (on non NO_REGEX builds anyway, and even on those for some of us. ;-) )
Maybe we should spend the time to make it "sparse clean" again.
Of course, that would mean that reftables would have a ton of work in front of it (not that it does already...).
> The 'pu' branch was frequently 'unclean', of course.
But mostly because there was no automated job to tell contributors about it.
Ciao, Dscho
Show 24 quoted lines
>
> ATB,
> Ramsay Jones
>
> >
> > May be it's.
> >
> > But we'll need
> >
> > make sparse |
> > grep -v -e 'plain integer as NULL pointer' \
> > -e 'redeclared with different type'
> >
> > The first one for:
> >
> > struct foo val = { 0 };
> >
> > to zero structure.
> >
> > The second one for different in declaration and definition (which is
> > fixed in sparse's master).
> >
> >
>