Re: [PATCH] gcc warning 'expression which evaluates to zero treatedas a null pointer' - Mailing list pgsql-hackers

From didier
Subject Re: [PATCH] gcc warning 'expression which evaluates to zero treatedas a null pointer'
Date
Msg-id CAJRYxuLUJ+jrCa5HjF=9Txg6m+GqS6gqgo4K47f_tm+QymB3Ow@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] gcc warning 'expression which evaluates to zero treated as a null pointer'  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On Wed, Nov 13, 2019 at 10:01 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> didier <did447@gmail.com> writes:
> > clang -E output before 7a0574b5
> > HeapTuple newtuple = 0;
> > with 7a0574b5
> > HeapTuple newtuple = ((bool) 0);
>
> Hm, did you re-run configure after 7a0574b5?  If you didn't, it would
> have gone through the not-stdbool.h path in c.h, which might account
> for this.  It's a good catch though, even if by accident :-)
Yes, that's it. I should have known better, it's no the first time I
made this mistake,
thanks.

Didier



pgsql-hackers by date:

Previous
From: Mahendra Singh
Date:
Subject: Re: cost based vacuum (parallel)
Next
From: Sehrope Sarkuni
Date:
Subject: Re: 2019-11-14 Press Release Draft