[Bug stdio/23468] bits/stdio.h conversion errors when compiling with -Werror=conversion
ablakeman at gmail dot com
sourceware-bugzilla@sourceware.org
Tue Jul 31 04:45:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23468
--- Comment #3 from ablakeman at gmail dot com ---
By the way, I'm not sure if it's the appropriate fix but with gcc7.3\glibc2.27,
modifying /usr/include/libio.h as follows gets rid of the warnings:
--- libio.h.orig 2018-07-30 21:42:49.974165776 -0700
+++ libio.h 2018-07-30 21:43:04.966464672 -0700
@@ -411,7 +411,7 @@
#define _IO_putc_unlocked(_ch, _fp) \
(_IO_BE ((_fp)->_IO_write_ptr >= (_fp)->_IO_write_end, 0) \
? __overflow (_fp, (unsigned char) (_ch)) \
- : (unsigned char) (*(_fp)->_IO_write_ptr++ = (_ch)))
+ : (unsigned char) (*(_fp)->_IO_write_ptr++ = (char)(_ch)))
#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
# define _IO_getwc_unlocked(_fp) \
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list