[Mesa-dev] [PATCH] mesa: Use correct functions for enum conversion.

Eric Anholt eric at anholt.net
Mon Mar 11 09:52:40 PDT 2013


Vinson Lee <vlee at freedesktop.org> writes:

> Fixes mixing enum types defects reported by Coverity.

Reviewed-by: Eric Anholt <eric at anholt.net>

I'm disappointed in gcc that there's -Wenum-compare, but nothing to
complain about implicit conversions between enum types. (between an enum
and int I'm fine with, unlike C++, but enum to enum is probably a
mistake)

Also, further proof that we need more tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130311/d68f4e77/attachment.pgp>


More information about the mesa-dev mailing list