mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-04-02 11:25:18 -05:00
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:
committed by
Pete Johanson
parent
5257cde1f5
commit
7a5155f36e
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user