[cfe-dev] Possibly invalid enum tautology warning

Peter Geoghegan peter at 2ndquadrant.com
Mon Aug 8 13:08:35 PDT 2011


On 8 August 2011 20:59, David Blaikie <dblaikie at gmail.com> wrote:
> If there's some other case where testing "enum_value > 0" could be
> justified, then perhaps we could talk about that - but without a use
> case it doesn't seem worth addressing on such theoretical grounds.

Notably, Clang fairly arbitrarily doesn't show the warning when the
enum constant is used in place of a 0 rvalue. Why?

-- 
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services




More information about the cfe-dev mailing list