]> 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, 21 Feb 2012 19:15:58 +0000 (14:15 -0500)
commitd9c4462778a3d97b38e267dcdf68dfe22210ed8c
tree6434075c22e5f909521fae069039370ec41224cb
parent97c9506e4d0abe5e6a7d61c1a909741d2605507b
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