Skip to content

Problems found when compiling #5

Description

@rthawkcom

gcc libusb-config --cflags -O -Wall -c uDMX.c
uDMX.c: In function ‘main’:
uDMX.c:131:37: warning: pointer targets in passing argument 6 of ‘usb_control_msg’ differ in signedness [-Wpointer-sign]
131 | cmd_StartBootloader, 0, 0, buffer, sizeof(buffer), 5000);
| ^~~~~~
| |
| unsigned char *
In file included from uDMX.c:22:
/usr/include/usb.h:313:30: note: expected ‘char *’ but argument is of type ‘unsigned char *’
313 | int value, int index, char *bytes, int size, int timeout);
| ~~~~~~^~~~~
uDMX.c:145:48: warning: pointer targets in passing argument 6 of ‘usb_control_msg’ differ in signedness [-Wpointer-sign]
145 | cmd_SetSingleChannel, value, channel, buffer, sizeof(buffer), 5000);
| ^~~~~~
| |
| unsigned char *
In file included from uDMX.c:22:
/usr/include/usb.h:313:30: note: expected ‘char *’ but argument is of type ‘unsigned char *’
313 | int value, int index, char *bytes, int size, int timeout);
| ~~~~~~^~~~~
uDMX.c:157:48: warning: pointer targets in passing argument 6 of ‘usb_control_msg’ differ in signedness [-Wpointer-sign]
157 | cmd_SetChannelRange, argc-2, channel, buf, argc-2, 5000);
| ^~~
| |
| unsigned char *
In file included from uDMX.c:22:
/usr/include/usb.h:313:30: note: expected ‘char *’ but argument is of type ‘unsigned char *’
313 | int value, int index, char *bytes, int size, int timeout);
| ~~~~~~^~~~~
gcc -o uDMX uDMX.o libusb-config --libs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions