From 8caf8c8985e310761fa079c794febdf2246f4269 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Mon, 23 Nov 2020 20:04:19 +0100 Subject: [PATCH] hidapi.h: fix API prototype for gcc flag -Wstrict-prototypes (#207) --- hidapi/hidapi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hidapi/hidapi.h b/hidapi/hidapi.h index 83b669f..3207af3 100644 --- a/hidapi/hidapi.h +++ b/hidapi/hidapi.h @@ -478,7 +478,7 @@ extern "C" { @returns Pointer to statically allocated struct, that contains version. */ - HID_API_EXPORT const struct hid_api_version* HID_API_CALL hid_version(); + HID_API_EXPORT const struct hid_api_version* HID_API_CALL hid_version(void); /** @brief Get a runtime version string of the library. @@ -488,7 +488,7 @@ extern "C" { @returns Pointer to statically allocated string, that contains version string. */ - HID_API_EXPORT const char* HID_API_CALL hid_version_str(); + HID_API_EXPORT const char* HID_API_CALL hid_version_str(void); #ifdef __cplusplus }