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

Поиск
Список
Период
Сортировка
От didier
Тема Re: [PATCH] gcc warning 'expression which evaluates to zero treatedas a null pointer'
Дата
Msg-id CAJRYxuLUJ+jrCa5HjF=9Txg6m+GqS6gqgo4K47f_tm+QymB3Ow@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] gcc warning 'expression which evaluates to zero treated as a null pointer'  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Mahendra Singh
Дата:
Сообщение: Re: cost based vacuum (parallel)
Следующее
От: Sehrope Sarkuni
Дата:
Сообщение: Re: 2019-11-14 Press Release Draft