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

[BUG] Fix compiler warning on OS X #272

Open
qu1j0t3 opened this issue Jan 1, 2023 · 0 comments
Open

[BUG] Fix compiler warning on OS X #272

qu1j0t3 opened this issue Jan 1, 2023 · 0 comments
Labels

Comments

@qu1j0t3
Copy link
Contributor

qu1j0t3 commented Jan 1, 2023

Noticed this warning.

Fixed by this change: qu1j0t3@eabe681

Opened an issue according to guideline in Contributing.txt

Describe the bug
Compiler warning on OS X.

To Reproduce
Steps to reproduce the behavior:

  1. make
  2. Warning shown:
$ make
Building library: library/micronucleus_lib.c...
gcc -I/usr/local/Cellar/libusb/1.0.26/include/libusb-1.0 -I/usr/local/Cellar/libusb-compat/0.1.8/include -Ilibrary -O -g -D MAC_OS -D MAC_OS_PKGCONFIG -c library/micronucleus_lib.c
library/micronucleus_lib.c:301:16: warning: passing 'unsigned char [page_length]' to parameter of type 'char *' converts
      between pointers to integer types with different sign [-Wpointer-sign]
               page_buffer, page_length,
               ^~~~~~~~~~~
/usr/local/Cellar/libusb-compat/0.1.8/include/usb.h:330:30: note: passing argument to parameter 'bytes' here
        int value, int index, char *bytes, int size, int timeout);
                                    ^
1 warning generated.

Expected behavior
Clean compile.

Used Hardware
n/a

Desktop (please complete the following information):

  • OS: OS X 10.15.7
@qu1j0t3 qu1j0t3 added the bug label Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant