summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fgets.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-09-07 19:17:03 +0000
committerdim <dim@FreeBSD.org>2016-09-07 19:17:03 +0000
commitae885e1fdfebdb4a8e373a88a3cb35b8479dea67 (patch)
tree9cced87be94872e9057d786d53d9a91199d9668a /lib/libc/stdio/fgets.c
parent69478467da704cf56025f7ecec912611ab1e4e71 (diff)
downloadFreeBSD-src-ae885e1fdfebdb4a8e373a88a3cb35b8479dea67.zip
FreeBSD-src-ae885e1fdfebdb4a8e373a88a3cb35b8479dea67.tar.gz
MFC r305360:
With clang 3.9.0, compiling cxgb results in the following warning: sys/dev/cxgb/cxgb_sge.c:2873:44: error: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Werror,-Wconstant-conversion] *mtod(m, char *) = CPL_ASYNC_NOTIF; ~ ^~~~~~~~~~~~~~~ This is because CPL_ASYNC_NOTIF is 0x80, so the plain char argument is wrapped to a negative value. Fix this by using uint8_t instead. Reviewed by: np Differential Revision: https://reviews.freebsd.org/D7772
Diffstat (limited to 'lib/libc/stdio/fgets.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud