It occurred to me that you may be a little surprised that the patch
actually prevents the warning from occurring. If you have any doubts,
I can assure you that it does. Clang differentiates between 0 as an
rvalue, 0 from an enum literal and 0 resulting from evaluating a macro
expression (including a function-like macro with deep nesting).
--
Peter Geoghegan http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services
In response to
pgsql-hackers by date
| Next: | From: Tom Lane | Date: 2011-08-03 14:29:09 |
| Subject: Re: Further news on Clang - spurious warnings |
| Previous: | From: Tom Lane | Date: 2011-08-03 13:29:54 |
| Subject: Re: pgbench internal contention |