diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2020-12-31 13:15:24 +0000 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2021-01-08 11:39:25 +0000 |
commit | 8657c081e93245955aa637a241d94315bd39b491 (patch) | |
tree | 031bbc4dfc283c817ed185ce03a05c18884f8ff9 | |
parent | bd7123ac416efd5c1530be763b9542a336aab1b4 (diff) |
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');
^~~~
-rw-r--r-- | src/fcformat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcformat.c b/src/fcformat.c index c76dc5e..ae8c59c 100644 --- a/src/fcformat.c +++ b/src/fcformat.c @@ -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 { |