From 54dd2a6e3a05b940d9daebb3d73f6876c182b3e7 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 4 Feb 2019 22:32:24 -0800 Subject: altos: Add 'void' to function declarations with no params. Support -Wstrict-prototypes Signed-off-by: Keith Packard --- src/stmf0/ao_exti_stm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stmf0/ao_exti_stm.c') diff --git a/src/stmf0/ao_exti_stm.c b/src/stmf0/ao_exti_stm.c index 910a36f2..77c59d05 100644 --- a/src/stmf0/ao_exti_stm.c +++ b/src/stmf0/ao_exti_stm.c @@ -123,7 +123,7 @@ ao_exti_set_mode(struct stm_gpio *gpio, uint8_t pin, uint8_t mode) { } void -ao_exti_set_callback(struct stm_gpio *gpio, uint8_t pin, void (*callback)()) { +ao_exti_set_callback(struct stm_gpio *gpio, uint8_t pin, void (*callback)(void)) { (void) gpio; ao_exti_callback[pin] = callback; } -- cgit v1.2.3