Complain about invalid constants in config files.
reviewed by: plam
This commit is contained in:
parent
1c5b6345b9
commit
f28472fdb4
|
@ -1,3 +1,10 @@
|
|||
2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
|
||||
reviewed by: plam
|
||||
|
||||
* src/fcxml.c (FcTypecheckExpr):
|
||||
|
||||
Complain about invalid constants in config files.
|
||||
|
||||
2005-11-17 Andreas Schwab <schwab@suse.de>
|
||||
reviewed by: plam
|
||||
|
||||
|
|
|
@ -588,6 +588,10 @@ FcTypecheckExpr (FcConfigParse *parse, FcExpr *expr, FcType type)
|
|||
if (o)
|
||||
FcTypecheckValue (parse, o->type, type);
|
||||
}
|
||||
else
|
||||
FcConfigMessage (parse, FcSevereWarning,
|
||||
"invalid constant used : %s",
|
||||
expr->u.constant);
|
||||
break;
|
||||
case FcOpQuest:
|
||||
FcTypecheckExpr (parse, expr->u.tree.left, FcTypeBool);
|
||||
|
|
Loading…
Reference in New Issue