8000 Failed to compile openocd due to missing void parameter in prototypes · Issue #464 · signal11/hidapi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Failed to compile openocd due to missing void parameter in prototypes #464
Open
@bdmihai

Description

@bdmihai

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

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

      0