projects
/
platform
/
upstream
/
fontconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a04ac99
)
Can't typecheck values for objects with no known type.
author
Keith Packard
<keithp@neko.keithp.com>
Mon, 4 Sep 2006 19:46:01 +0000
(12:46 -0700)
committer
Keith Packard
<keithp@neko.keithp.com>
Mon, 4 Sep 2006 19:46:01 +0000
(12:46 -0700)
Objects that aren't part of the built-in object list don't have predefined
types, so we can't typecheck them.
src/fcxml.c
patch
|
blob
|
history
diff --git
a/src/fcxml.c
b/src/fcxml.c
index
d91e522
..
441e6de
100644
(file)
--- 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));
}