]> git.wh0rd.org Git - fontconfig.git/commit
FcObjectValidType: tweak -1 checking
authorMike Frysinger <vapier@gentoo.org>
Tue, 8 Nov 2011 01:09:10 +0000 (20:09 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 8 Nov 2011 01:10:21 +0000 (20:10 -0500)
commit789702de6d5c0c766b08075d41c1ed5d9900b9e7
treee199a9111e300bbe37b38b9dd49c8867064459e5
parentd1d3534416ea209bf4dc5069127761bf840f0ce4
FcObjectValidType: tweak -1 checking

Newer gcc doesn't like when you switch on an enum and use a value
that isn't declared:

fcname.c: In function 'FcObjectValidType':
fcname.c:299:2: warning: case value '4294967295'
not in enumerated type 'FcType' [-Wswitch]

So tweak the logic to avoid this warning.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
src/fcname.c