Skip to content

Commit

Permalink
fw: remove warning of missing prototypes when building with QEMU console
Browse files Browse the repository at this point in the history
enabled.
  • Loading branch information
dehanj committed Sep 6, 2024
1 parent c089fb9 commit 9f7eb79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hw/application_fpga/fw/tk1/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void htif_putc(char ch)
htif_putchar(ch);
}

void htif_lf()
void htif_lf(void)
{
htif_putchar('\n');
}
Expand Down
6 changes: 3 additions & 3 deletions hw/application_fpga/fw/tk1/lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f7eb79

Please sign in to comment.