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?
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