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
|
|
@ -18,8 +18,12 @@ enum zmk_usb_conn_state {
|
|||
ZMK_USB_CONN_HID,
|
||||
};
|
||||
|
||||
enum usb_dc_status_code zmk_usb_get_status();
|
||||
enum zmk_usb_conn_state zmk_usb_get_conn_state();
|
||||
enum usb_dc_status_code zmk_usb_get_status(void);
|
||||
enum zmk_usb_conn_state zmk_usb_get_conn_state(void);
|
||||
|
||||
static inline bool zmk_usb_is_powered() { return zmk_usb_get_conn_state() != ZMK_USB_CONN_NONE; }
|
||||
static inline bool zmk_usb_is_hid_ready() { return zmk_usb_get_conn_state() == ZMK_USB_CONN_HID; }
|
||||
static inline bool zmk_usb_is_powered(void) {
|
||||
return zmk_usb_get_conn_state() != ZMK_USB_CONN_NONE;
|
||||
}
|
||||
static inline bool zmk_usb_is_hid_ready(void) {
|
||||
return zmk_usb_get_conn_state() == ZMK_USB_CONN_HID;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue