fw: remove warning of missing prototypes when building with QEMU console

enabled.
This commit is contained in:
Daniel Jobson 2024-09-06 13:00:47 +02:00 committed by Michael Cardell Widerkrantz
parent 613316f53e
commit 81950ef7b2
No known key found for this signature in database
GPG Key ID: D3DB3DDF57E704E5
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ void htif_putc(char ch)
htif_putchar(ch); htif_putchar(ch);
} }
void htif_lf() void htif_lf(void)
{ {
htif_putchar('\n'); htif_putchar('\n');
} }

View File

@ -8,16 +8,16 @@
#include "types.h" #include "types.h"
#ifdef QEMU_CONSOLE #ifdef QEMU_CONSOLE
void htif_putc(char ch); void htif_putc(char ch);
void htif_lf(); void htif_lf(void);
void htif_puthex(uint8_t c); void htif_puthex(uint8_t c);
void htif_putinthex(const uint32_t n); void htif_putinthex(const uint32_t n);
void htif_puts(const char *s); void htif_puts(const char *s);
void htif_hexdump(void *buf, int len); void htif_hexdump(void *buf, int len);
#else #else
#define htif_putc(ch) #define htif_putc(ch)
#define htif_lf() #define htif_lf(void)
#define htif_puthex(c) #define htif_puthex(c)
#define htif_putinthex(n) #define htif_putinthex(n)
#define htif_puts(s) #define htif_puts(s)