Add void to function declarations with no args

SDCC 4.3.3 complains about the declaration not matching the prototype:

    error 283: function declarator with no prototype

Add `void` to the AVR functions as well, even though no warning is
issued by GCC.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-10-13 15:49:20 -06:00
committed by Jeremy Soller
parent 01be30f107
commit 713e1d9681
25 changed files with 25 additions and 25 deletions

View File

@@ -44,7 +44,7 @@ struct Gpio __code WLAN_EN = GPIO(J, 2);
struct Gpio __code WLAN_PWR_EN = GPIO(B, 0);
// clang-format on
void gpio_init() {
void gpio_init(void) {
// Enable LPC reset on GPD2
GCR = 0x04;