Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build produces compiler warning on FreeBSD 11.2 #16

Closed
duncan-bayne opened this issue Nov 15, 2018 · 2 comments
Closed

Build produces compiler warning on FreeBSD 11.2 #16

duncan-bayne opened this issue Nov 15, 2018 · 2 comments

Comments

@duncan-bayne
Copy link

duncan-bayne commented Nov 15, 2018

When I build blink1-tool on FreeBSD (with #14 merged), I get the following compiler warning:

hidapi/libusb/hid.c: In function 'get_usb_string':
hidapi/libusb/hid.c:353:18: warning: passing argument 2 of 'libiconv' from incompatible pointer type [-Wincompatible-pointer-types]
  res = iconv(ic, &inptr, &inbytes, &outptr, &outbytes);
                  ^
In file included from hidapi/libusb/hid.c:48:0:
/usr/local/include/iconv.h:85:15: note: expected 'char **' but argument is of type 'const char **'
 extern size_t iconv (iconv_t cd,  char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
               ^
@duncan-bayne duncan-bayne changed the title Build produces compiler warnings on FreeBSD 11.2 Build produces compiler warning on FreeBSD 11.2 Nov 15, 2018
@todbot
Copy link
Owner

todbot commented Nov 15, 2018

Hi, This looks to be an issue with upstream hidapi. You should file the issue there.

@todbot todbot closed this as completed Nov 15, 2018
@duncan-bayne
Copy link
Author

@todbot I don't think there'd be much point.

signal11/hidapi#373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants