From 49051f8ea4551229fa656eba04031af51a5491c5 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 27 Nov 2014 16:01:04 +0000 Subject: Fix libio/bug-ungetwc1.c warning. This patch fixes a warning "variable 'wc' set but not used" in libio/bug-ungetwc1.c. The test didn't verify much about the results of the functions it called. This patch makes it check the result of getwc (thereby fixing the warning), check end of file does not arrive too late in the getwc loop, and check EOF is no longer set after ungetwc. Tested for x86_64. * libio/bug-ungetwc1.c (do_test): Verify results of getwc and feof. --- ChangeLog | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 9090877c86..7fdc85da89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-11-27 Joseph Myers + * libio/bug-ungetwc1.c (do_test): Verify results of getwc and + feof. + * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a variable. -- cgit 1.4.1