Fix compiler warnings
This commit is contained in:
parent
346073d9dc
commit
13a5ae9fb9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue