From acd92003c8145079c6226211848e26b0472d8445 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Wed, 19 Jan 2005 10:31:51 +0000 Subject: Avoid compiler warnings. --- libc/stdio/_trans2r.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/stdio/_trans2r.c') diff --git a/libc/stdio/_trans2r.c b/libc/stdio/_trans2r.c index d33d9eba8..9afb75428 100644 --- a/libc/stdio/_trans2r.c +++ b/libc/stdio/_trans2r.c @@ -41,9 +41,13 @@ int __stdio_trans2r(FILE * __restrict stream) #endif if (stream->__modeflags & __FLAG_WRITEONLY) { +#if defined(__UCLIBC_HAS_WCHAR__) || !defined(__UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION__) DO_EBADF: +#endif __set_errno(EBADF); +#ifdef __UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION__ ERROR: +#endif __STDIO_STREAM_SET_ERROR(stream); __STDIO_STREAM_VALIDATE(stream); return EOF; -- cgit v1.2.3