[cfe-dev] Possibly invalid enum tautology warning

David Blaikie dblaikie at gmail.com
Mon Aug 8 12:18:55 PDT 2011


> I'd say that it was the most natural way of
> expressing the problem; the value of the enum had to be used as an
> array subscript, and the enum might well have been unsigned for all we
> knew - arbitrary third party code is not to be trusted.

Could you explain this in more detail, as it's still not clear to me
what postgres was doing, nor how you fixed it.

You're saying postgres took a user-defined enum? Through a template
parameter (I assume not - since your example is in C) or an int type?
(I assume so) - and you wanted to check whether some specific value
passed in was usable as an array index, even though other values
within the enum might not be?

I'm still rather confused about this,

- David



More information about the cfe-dev mailing list