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

Failed to compile openocd due to missing void parameter in prototypes #464

Open
bdmihai opened this issue Nov 22, 2020 · 1 comment
Open

Comments

@bdmihai
Copy link

bdmihai commented Nov 22, 2020

Hello,

Compiling openocd (latest version from git) fails with the following error message:

/usr/include/hidapi/hidapi.h:481:32: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
481 | HID_API_EXPORT const struct hid_api_version* HID_API_CALL hid_version();
| ^~~~~~~~~~~~~~~
/usr/include/hidapi/hidapi.h:491:3: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
491 | HID_API_EXPORT const char* HID_API_CALL hid_version_str();
| ^~~~~~~~~~~~~~

Adding void as parameter for the two functions will fix the issue.
HID_API_EXPORT const struct hid_api_version* HID_API_CALL hid_version(void);
HID_API_EXPORT const char* HID_API_CALL hid_version_str(void);

Would be possible to fix this in order to avoid this problem?

BR,
Mihai

@Youw
Copy link

Youw commented Nov 22, 2020

Please see #373
And libusb/hidapi#207

Megamouse pushed a commit to RPCS3/hidapi that referenced this issue May 23, 2023
…GetSerialNumberString (signal11#464)

This is efficient for Xbox Common Controller class (XUSB) devices like Xbox 360 or Xbox One controllers that are missing serial number via usual HID API.
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