Fix compiler warnings

This commit is contained in:
Behdad Esfahbod 2014-08-20 16:03:02 -04:00
parent 346073d9dc
commit 13a5ae9fb9
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,7 @@ FcRuleDestroy (FcRule *rule)
case FcRuleEdit: case FcRuleEdit:
FcEditDestroy (rule->u.edit); FcEditDestroy (rule->u.edit);
break; break;
case FcRuleUnknown:
default: default:
break; break;
} }
@ -612,6 +613,7 @@ FcTypeName (FcType type)
return "langset"; return "langset";
case FcTypeRange: case FcTypeRange:
return "range"; return "range";
case FcTypeUnknown:
default: default:
return "unknown"; return "unknown";
} }
@ -809,6 +811,7 @@ FcRuleCreate (FcRuleType type,
case FcRuleEdit: case FcRuleEdit:
r->u.edit = (FcEdit *) p; r->u.edit = (FcEdit *) p;
break; break;
case FcRuleUnknown:
default: default:
free (r); free (r);
r = NULL; r = NULL;