lint: add (void) parameter to pass -Wstrict-prototypes
Note there was one place where a non-strict prototype was actually being used with an argument, in `zmk_hog_init`. In this case, the actual argument type was added instead.
This commit is contained in:
parent
5257cde1f5
commit
7a5155f36e
28 changed files with 117 additions and 109 deletions
|
|
@ -147,13 +147,13 @@ static int zmk_usb_hid_send_report(const uint8_t *report, size_t len) {
|
|||
}
|
||||
}
|
||||
|
||||
int zmk_usb_hid_send_keyboard_report() {
|
||||
int zmk_usb_hid_send_keyboard_report(void) {
|
||||
size_t len;
|
||||
uint8_t *report = get_keyboard_report(&len);
|
||||
return zmk_usb_hid_send_report(report, len);
|
||||
}
|
||||
|
||||
int zmk_usb_hid_send_consumer_report() {
|
||||
int zmk_usb_hid_send_consumer_report(void) {
|
||||
#if IS_ENABLED(CONFIG_ZMK_USB_BOOT)
|
||||
if (hid_protocol == HID_PROTOCOL_BOOT) {
|
||||
return -ENOTSUP;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue