Fix warnings in fwscanf / rewind tests.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 26 Nov 2014 12:54:39 +0000 (12:54 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 26 Nov 2014 12:54:39 +0000 (12:54 +0000)
commit12da14a59135fe331f294b91488c1bdf55b35b4e
tree32c04ca07391dfc8df76cd782707e9f772016dbc
parentbd5dadac87467eec9d6ffc3f1b11897ea052a636
Fix warnings in fwscanf / rewind tests.

This patch fixes "set but not used" warnings in the tests
libio/bug-rewind.c and libio/bug-rewind2.c by checking the return
values from fwscanf and making the tests fail if those values aren't
as expected.

Tested for x86_64.

* libio/bug-rewind.c (do_test): Check fwscanf return values.
* libio/bug-rewind2.c (do_test): Likewise.
ChangeLog
libio/bug-rewind.c
libio/bug-rewind2.c