From 81950ef7b2b58c08297839615614687a7feb273c Mon Sep 17 00:00:00 2001 From: Daniel Jobson Date: Fri, 6 Sep 2024 13:00:47 +0200 Subject: [PATCH] fw: remove warning of missing prototypes when building with QEMU console enabled. --- hw/application_fpga/fw/tk1/lib.c | 2 +- hw/application_fpga/fw/tk1/lib.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/application_fpga/fw/tk1/lib.c b/hw/application_fpga/fw/tk1/lib.c index c7c98ae..5399dbb 100644 --- a/hw/application_fpga/fw/tk1/lib.c +++ b/hw/application_fpga/fw/tk1/lib.c @@ -72,7 +72,7 @@ void htif_putc(char ch) htif_putchar(ch); } -void htif_lf() +void htif_lf(void) { htif_putchar('\n'); } diff --git a/hw/application_fpga/fw/tk1/lib.h b/hw/application_fpga/fw/tk1/lib.h index 245a16d..2d3d7e3 100644 --- a/hw/application_fpga/fw/tk1/lib.h +++ b/hw/application_fpga/fw/tk1/lib.h @@ -8,16 +8,16 @@ #include "types.h" -#ifdef QEMU_CONSOLE +#ifdef QEMU_CONSOLE void htif_putc(char ch); -void htif_lf(); +void htif_lf(void); void htif_puthex(uint8_t c); void htif_putinthex(const uint32_t n); void htif_puts(const char *s); void htif_hexdump(void *buf, int len); #else #define htif_putc(ch) -#define htif_lf() +#define htif_lf(void) #define htif_puthex(c) #define htif_putinthex(n) #define htif_puts(s)