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

From Tom Lane
Subject Re: [PATCH] gcc warning 'expression which evaluates to zero treated as a null pointer'
Date
Msg-id 3243.1573678879@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] gcc warning 'expression which evaluates to zero treatedas a null pointer'  (didier <did447@gmail.com>)
Responses Re: [PATCH] gcc warning 'expression which evaluates to zero treatedas a null pointer'  (didier <did447@gmail.com>)
List pgsql-hackers
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 :-)

            regards, tom lane



pgsql-hackers by date:

Previous
From: didier
Date:
Subject: Re: [PATCH] gcc warning 'expression which evaluates to zero treatedas a null pointer'
Next
From: Peter Geoghegan
Date:
Subject: Re: Building infrastructure for B-Tree deduplication that recognizeswhen opclass equality is also equivalence