forked from kofal.net/zmk
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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user