glibc/libio
Joseph Myers 49051f8ea4 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.
2014-11-27 16:01:04 +00:00
..
bits Complete _BSD_SOURCE / _SVID_source followup cleanup. 2014-02-21 21:45:26 +00:00
__fbufsize.c
__flbf.c
__fpending.c
__fpurge.c
__freadable.c
__freading.c
__fsetlocking.c
__fwritable.c
__fwriting.c
bug-fopena+.c
bug-fseek.c
bug-ftell.c
bug-memstream1.c
bug-mmap-fflush.c
bug-rewind2.c Fix warnings in fwscanf / rewind tests. 2014-11-26 12:54:39 +00:00
bug-rewind.c Fix warnings in fwscanf / rewind tests. 2014-11-26 12:54:39 +00:00
bug-ungetc2.c
bug-ungetc3.c
bug-ungetc4.c
bug-ungetc.c
bug-ungetwc1.c Fix libio/bug-ungetwc1.c warning. 2014-11-27 16:01:04 +00:00
bug-ungetwc2.c
bug-wfflush.c
bug-wmemstream1.c
bug-wsetpos.c
clearerr_u.c
clearerr.c
Depend
fcloseall.c
feof_u.c
feof.c
ferror_u.c
ferror.c
filedoalloc.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
fileno.c Fix tzfile.c namespace (bug 17583). 2014-11-12 16:22:51 +00:00
fileops.c Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00
fmemopen.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
fputc_u.c
fputc.c
fputwc_u.c
fputwc.c
freopen64.c
freopen.c
fseek.c
fseeko64.c
fseeko.c
ftello64.c
ftello.c Fix tzfile.c namespace (bug 17583). 2014-11-12 16:22:51 +00:00
fwide.c
fwprintf.c
fwscanf.c
genops.c Revert "Fix _IO_JUMPS_OFFSET -Wundef warnings" 2014-03-17 20:37:42 +00:00
getc_u.c
getc.c
getchar_u.c
getchar.c
getwc_u.c
getwc.c
getwchar_u.c
getwchar.c
iofclose.c
iofdopen.c Change offset in fdopen only if setting O_APPEND 2014-03-17 21:24:02 +05:30
iofflush_u.c
iofflush.c
iofgetpos64.c
iofgetpos.c
iofgets_u.c Fix __get_nprocs fgets_unlocked namespace (bug 17582). 2014-11-12 22:39:36 +00:00
iofgets.c Fix __get_nprocs fgets_unlocked namespace (bug 17582). 2014-11-12 22:39:36 +00:00
iofgetws_u.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
iofgetws.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
iofopen64.c
iofopen.c
iofopncook.c
iofputs_u.c
iofputs.c
iofputws_u.c
iofputws.c
iofread_u.c Fix tzfile.c namespace (bug 17583). 2014-11-12 16:22:51 +00:00
iofread.c Fix tzfile.c namespace (bug 17583). 2014-11-12 16:22:51 +00:00
iofsetpos64.c
iofsetpos.c
ioftell.c
iofwide.c Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00
iofwrite_u.c
iofwrite.c
iogetdelim.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
iogetline.c
iogets.c
iogetwline.c
iolibio.h
iopadn.c
iopopen.c
ioputs.c
ioseekoff.c
ioseekpos.c
iosetbuffer.c
iosetvbuf.c
ioungetc.c
ioungetwc.c
iovdprintf.c
iovsprintf.c
iovsscanf.c
iovswscanf.c
iowpadn.c
libc_fatal.c
libio.h
libioP.h Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
Makefile Don't error out writing a multibyte character to an unbuffered stream (bug 17522) 2014-11-03 09:58:24 +01:00
memstream.c
obprintf.c
oldfileops.c
oldiofclose.c
oldiofdopen.c
oldiofgetpos64.c
oldiofgetpos.c
oldiofopen.c
oldiofsetpos64.c
oldiofsetpos.c
oldiopopen.c
oldpclose.c
oldstdfiles.c
oldtmpfile.c
pclose.c
peekc.c
putc_u.c
putc.c
putchar_u.c
putchar.c
putwc_u.c
putwc.c
putwchar_u.c
putwchar.c
rewind.c
setbuf.c
setlinebuf.c
stdfiles.c
stdio.c
stdio.h Revert to defining __extern_inline only for gcc-4.3+ (BZ #17266) 2014-09-16 14:08:48 +05:30
strfile.h
strops.c
swprintf.c
swscanf.c
test-fmemopen.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
test-freopen.c
test-freopen.sh
tst_getwc.c
tst_getwc.input
tst_putwc.c
tst_swprintf.c
tst_swscanf.c
tst_wprintf2.c
tst_wprintf.c
tst_wscanf.c
tst_wscanf.input
tst-atime.c
tst-eof.c
tst-ext2.c
tst-ext.c
tst-fgetwc.c
tst-fgetwc.input
tst-fgetws.c
tst-fopenloc2.c
tst-fopenloc.c
tst-fputws.c Don't error out writing a multibyte character to an unbuffered stream (bug 17522) 2014-11-03 09:58:24 +01:00
tst-freopen.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-fseek.c
tst-ftell-active-handler.c Change offset in fdopen only if setting O_APPEND 2014-03-17 21:24:02 +05:30
tst-ftell-append.c Fix offset computation for append+ mode on switching from read (BZ #16724) 2014-05-27 13:54:19 +05:30
tst-ftell-partial-wide.c
tst-fwrite-error.c
tst-memstream1.c
tst-memstream2.c
tst-mmap2-eofsync.c
tst-mmap-eofsync.c
tst-mmap-fflushsync.c
tst-mmap-offend.c
tst-mmap-setvbuf.c
tst-popen1.c
tst-setvbuf1.c
tst-sscanf.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-swscanf.c
tst-ungetwc1.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-ungetwc2.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-widetext.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-widetext.input
tst-wmemstream1.c
tst-wmemstream2.c
vasprintf.c
Versions
vscanf.c
vsnprintf.c
vswprintf.c
vwprintf.c
vwscanf.c
wfiledoalloc.c
wfileops.c Don't error out writing a multibyte character to an unbuffered stream (bug 17522) 2014-11-03 09:58:24 +01:00
wgenops.c
wmemstream.c
wprintf.c
wscanf.c
wstrops.c