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
|
|
@ -13,11 +13,11 @@ K_THREAD_STACK_DEFINE(lowprio_q_stack, CONFIG_ZMK_LOW_PRIORITY_THREAD_STACK_SIZE
|
|||
|
||||
static struct k_work_q lowprio_work_q;
|
||||
|
||||
struct k_work_q *zmk_workqueue_lowprio_work_q() {
|
||||
struct k_work_q *zmk_workqueue_lowprio_work_q(void) {
|
||||
return &lowprio_work_q;
|
||||
}
|
||||
|
||||
static int workqueue_init() {
|
||||
static int workqueue_init(void) {
|
||||
static const struct k_work_queue_config queue_config = {.name = "Low Priority Work Queue"};
|
||||
k_work_queue_start(&lowprio_work_q, lowprio_q_stack, K_THREAD_STACK_SIZEOF(lowprio_q_stack),
|
||||
CONFIG_ZMK_LOW_PRIORITY_THREAD_PRIORITY, &queue_config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue