diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-22 06:44:13 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-22 06:44:13 +0000 |
commit | e17cda32d6501b20cbc23cc8c274362736c2bcc8 (patch) | |
tree | e0f835f76aabb3e6f8ccdcb78c48d6bcaa44e6fd /tests/testboundaries_ucd.c | |
parent | 89f8a4e0631434131b8d7308a2c0b22c5bbda5c7 (diff) | |
parent | 68a10a221b661cf194086e57ca019364c6775b7f (diff) | |
download | pango-e17cda32d6501b20cbc23cc8c274362736c2bcc8.tar.gz |
Merge branch 'compiler-warnings' into 'main'
build: More compiler warnings
See merge request GNOME/pango!428
Diffstat (limited to 'tests/testboundaries_ucd.c')
-rw-r--r-- | tests/testboundaries_ucd.c | 7 |
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); |