summaryrefslogtreecommitdiff
path: root/tests/testboundaries_ucd.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-22 02:01:33 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-22 02:36:48 -0400
commitc47c61012687f9e24826c17ffec8eafbe0a2e68c (patch)
tree3d76a550a6d3c9bfed4d61e59f727aa59095cc1b /tests/testboundaries_ucd.c
parent9e8e4c7cd291bca8a28a18611cc0111a123291a6 (diff)
downloadpango-c47c61012687f9e24826c17ffec8eafbe0a2e68c.tar.gz
tests: Silence compiler warnings
Diffstat (limited to 'tests/testboundaries_ucd.c')
-rw-r--r--tests/testboundaries_ucd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/testboundaries_ucd.c b/tests/testboundaries_ucd.c
index 0cd301f7..d9f08a57 100644
--- a/tests/testboundaries_ucd.c
+++ b/tests/testboundaries_ucd.c
@@ -263,6 +263,9 @@ do_test (const gchar *filename,
case G_IO_STATUS_NORMAL:
line[terminator_pos] = '\0';
break;
+
+ default:
+ break;
}
g_test_message ("Parsing line: %s", line);
@@ -276,7 +279,7 @@ do_test (const gchar *filename,
if (! attrs_equal (attrs, expected_attrs, num_attrs, bits))
{
gchar *str = make_test_string (string, attrs, bits);
- gchar *comments = strchr (line, '#');
+ char *comments = strchr (line, '#');
if (comments) /* don't print the # comment in the error message. print it separately */
{
*comments = '\0';
@@ -284,7 +287,7 @@ do_test (const gchar *filename,
}
else
{
- comments = "";
+ comments = (char *)"";
}
g_test_message ("%s: line %d failed", filename, i);