[Fontconfig] fontconfig: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 18 04:58:37 UTC 2020


 src/fcxml.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9133e799b57b96ef3bbf4787d1911f34d5cf6f14
Author: Jan Tojnar <jtojnar at gmail.com>
Date:   Thu Aug 13 18:36:42 2020 +0200

    Turn unknown attributes into warning
    
    As far as I can tell, fontconfig can recover from encountering an unknown attribute.
    And unknown elements already print a warning instead of an error, so let's make this a warning too.

diff --git a/src/fcxml.c b/src/fcxml.c
index c21090a..3b44368 100644
--- a/src/fcxml.c
+++ b/src/fcxml.c
@@ -1210,7 +1210,7 @@ FcPStackPop (FcConfigParse *parse)
 	{
 	    if (attrs[0][0])
 	    {
-		FcConfigMessage (parse, FcSevereError, "invalid attribute '%s'", attrs[0]);
+		FcConfigMessage (parse, FcSevereWarning, "invalid attribute '%s'", attrs[0]);
 	    }
 	    attrs += 2;
 	}


More information about the Fontconfig mailing list