From: Keith Packard Date: Mon, 4 Sep 2006 19:46:01 +0000 (-0700) Subject: Can't typecheck values for objects with no known type. X-Git-Tag: 2.3.97~10 X-Git-Url: https://git.wh0rd.org/?p=fontconfig.git;a=commitdiff_plain;h=9a9fd975a1330e21f0184cdb237cfb2a2f19c098 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. --- diff --git a/src/fcxml.c b/src/fcxml.c index d91e522..441e6de 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -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)); }