From: Daiki Ueno Date: Fri, 2 Oct 2015 02:27:40 +0000 (+0900) Subject: uniname/uniname-tests: avoid compiler warnings X-Git-Tag: v1.0~6939 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b3239907424e46492d04d46378968b6a9bd1a901;p=gnulib.git uniname/uniname-tests: avoid compiler warnings * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove unused local variables. (test_alias_lookup): Fix alias name display in failure cases. --- diff --git a/ChangeLog b/ChangeLog index 1584e2933a..1fe13e22a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-10-02 Daiki Ueno + + uniname/uniname-tests: avoid compiler warnings + * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove + unused local variables. + (test_alias_lookup): Fix alias name display in failure cases. + 2015-09-26 Paul Eggert c-ctype: do not worry about EBCDIC + char signed diff --git a/tests/uniname/test-uninames.c b/tests/uniname/test-uninames.c index 400b970c51..2942d8df41 100644 --- a/tests/uniname/test-uninames.c +++ b/tests/uniname/test-uninames.c @@ -62,8 +62,6 @@ fill_names (const char *unicodedata_filename) while (fgets (line, sizeof line, stream)) { - int n; - int c; char *p; char *comment; unsigned int i; @@ -117,7 +115,6 @@ fill_names (const char *unicodedata_filename) static void fill_aliases (const char *namealiases_filename) { - int i; FILE *stream; char *field0; char *field1; @@ -133,8 +130,6 @@ fill_aliases (const char *namealiases_filename) while (fgets (line, sizeof line, stream)) { - int n; - int c; char *p; char *comment; unsigned int uc; @@ -354,11 +349,11 @@ test_alias_lookup () { if (result == UNINAME_INVALID) fprintf (stderr, "inverse name lookup of \"%s\" failed\n", - unicode_aliases[i]); + unicode_aliases[i].name); else fprintf (stderr, "inverse name lookup of \"%s\" returned 0x%04X\n", - unicode_aliases[i], result); + unicode_aliases[i].name, result); error = 1; } }