Re: [PATCH] gcc warning 'expression which evaluates to zero treated as a null pointer'

From: didier <did447(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] gcc warning 'expression which evaluates to zero treated as a null pointer'
Date: 2019-11-14 12:07:54
Message-ID: CAJRYxuLUJ+jrCa5HjF=9Txg6m+GqS6gqgo4K47f_tm+QymB3Ow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Wed, Nov 13, 2019 at 10:01 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> didier <did447(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

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