Fix compiler warnings

This commit is contained in:
Behdad Esfahbod 2013-01-02 02:19:04 -06:00
parent 93fb1d4bab
commit 766bed901f
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ retry:
if (!ot) if (!ot)
return NULL; return NULL;
ot->object.object = FcStrdup (str); ot->object.object = (const char *) FcStrdup (str);
ot->object.type = -1; ot->object.type = -1;
ot->id = fc_atomic_int_add (next_id, +1); ot->id = fc_atomic_int_add (next_id, +1);
ot->next = ots; ot->next = ots;
@ -74,7 +74,7 @@ FcObject
FcObjectLookupBuiltinIdByName (const char *str) FcObjectLookupBuiltinIdByName (const char *str)
{ {
const struct FcObjectTypeInfo *o = FcObjectTypeLookup (str, strlen (str)); const struct FcObjectTypeInfo *o = FcObjectTypeLookup (str, strlen (str));
FcObject id;
if (o) if (o)
return o->id; return o->id;