Skip to content

Commit 8caf8c8

Browse files
authored
hidapi.h: fix API prototype for gcc flag -Wstrict-prototypes (#207)
1 parent ce606fa commit 8caf8c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hidapi/hidapi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ extern "C" {
478478
@returns
479479
Pointer to statically allocated struct, that contains version.
480480
*/
481-
HID_API_EXPORT const struct hid_api_version* HID_API_CALL hid_version();
481+
HID_API_EXPORT const struct hid_api_version* HID_API_CALL hid_version(void);
482482

483483

484484
/** @brief Get a runtime version string of the library.
@@ -488,7 +488,7 @@ extern "C" {
488488
@returns
489489
Pointer to statically allocated string, that contains version string.
490490
*/
491-
HID_API_EXPORT const char* HID_API_CALL hid_version_str();
491+
HID_API_EXPORT const char* HID_API_CALL hid_version_str(void);
492492

493493
#ifdef __cplusplus
494494
}

0 commit comments

Comments
 (0)