Can't typecheck values for objects with no known type.
Objects that aren't part of the built-in object list don't have predefined types, so we can't typecheck them.
This commit is contained in:
parent
a04ac99f0f
commit
9a9fd975a1
|
@ -545,6 +545,8 @@ FcTypecheckValue (FcConfigParse *parse, FcType value, FcType type)
|
|||
if ((value == FcTypeLangSet && type == FcTypeString) ||
|
||||
(value == FcTypeString && type == FcTypeLangSet))
|
||||
return;
|
||||
if (type == (FcType) -1)
|
||||
return;
|
||||
FcConfigMessage (parse, FcSevereWarning, "saw %s, expected %s",
|
||||
FcTypeName (value), FcTypeName (type));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue