summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fgets.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-09-07 19:21:52 +0000
committerdim <dim@FreeBSD.org>2016-09-07 19:21:52 +0000
commit801b22dfa05f578ce25b3267f3e22a05fafab0bd (patch)
tree6ed521455a14908540d264009717a8d5d984d0a7 /lib/libc/stdio/fgets.c
parentae885e1fdfebdb4a8e373a88a3cb35b8479dea67 (diff)
downloadFreeBSD-src-801b22dfa05f578ce25b3267f3e22a05fafab0bd.zip
FreeBSD-src-801b22dfa05f578ce25b3267f3e22a05fafab0bd.tar.gz
MFC r305388:
With clang 3.9.0, compiling uplcom results in the following warnings: sys/dev/usb/serial/uplcom.c:543:29: error: implicit conversion from 'int' to 'int8_t' (aka 'signed char') changes value from 192 to -64 [-Werror,-Wconstant-conversion] if (uplcom_pl2303_do(udev, UT_READ_VENDOR_DEVICE, UPLCOM_SET_REQUEST, 0x8484, 0, 1) ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~ sys/dev/usb/usb.h:179:53: note: expanded from macro 'UT_READ_VENDOR_DEVICE' #define UT_READ_VENDOR_DEVICE (UT_READ | UT_VENDOR | UT_DEVICE) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ This is because UT_READ is 0x80, so the int8_t argument is wrapped to a negative value. Fix this by using uint8_t instead. Reviewed by: imp, hselasky Differential Revision: https://reviews.freebsd.org/D7776
Diffstat (limited to 'lib/libc/stdio/fgets.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud