mirror of
https://github.com/opnsense/src.git
synced 2026-02-28 20:30:57 -05:00
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
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D7776
|
||
|---|---|---|
| .. | ||
| u3g.c | ||
| uark.c | ||
| ubsa.c | ||
| ubser.c | ||
| uchcom.c | ||
| ucycom.c | ||
| ufoma.c | ||
| uftdi.c | ||
| uftdi_reg.h | ||
| ugensa.c | ||
| uipaq.c | ||
| ulpt.c | ||
| umcs.c | ||
| umcs.h | ||
| umct.c | ||
| umodem.c | ||
| umoscom.c | ||
| uplcom.c | ||
| usb_serial.c | ||
| usb_serial.h | ||
| uslcom.c | ||
| uvisor.c | ||
| uvscom.c | ||