Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Conversation

@Ricardicus
Copy link

I was building usb-relay-hid on my machine and ran into this warning:

../../lib/usb_relay_lib.c: In function ‘usb_relay_device_enumerate’:
../../lib/usb_relay_lib.c:382:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int ret;
^~~

There is a return code from usbhidEnumDevices that is not looked at.
Since the returning value pusb_relay_device_info_t is a pointer-type,
I figured if this error appears, NULL is returned.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants