Commit 8657c081 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠 Committed by Akira TAGOH
Browse files

fcformat: fix compiler warnings with clang on Android

fcformat.c:762:44: warning: expression which evaluates to zero treated as a null pointer constant of type 'FcChar8 *' (aka 'unsigned char *') [-Wnon-literal-null-conversion]
                if (!FcNameUnparseValue (buf, &l->value, '\0'))
                                                         ^~~~
fcformat.c:769:38: warning: expression which evaluates to zero treated as a null pointer constant of type 'FcChar8 *' (aka 'unsigned char *') [-Wnon-literal-null-conversion]
            FcNameUnparseValueList (buf, l, '\0');
                                            ^~~~
parent bd7123ac
......@@ -759,14 +759,14 @@ interpret_simple (FcFormatContext *c,
}
if (l && idx == 0)
{
if (!FcNameUnparseValue (buf, &l->value, '\0'))
if (!FcNameUnparseValue (buf, &l->value, NULL))
return FcFalse;
}
else goto notfound;
}
else if (l)
{
FcNameUnparseValueList (buf, l, '\0');
FcNameUnparseValueList (buf, l, NULL);
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment