Commit f88a83a2 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Alberto Escolar
Browse files

drivers: console: posix_arch_console: remove build warning



Remove build warning when building the posix_arch_console driver with
CONFIG_PRINTK=n and CONFIG_STDOUT_CONSOLE=n.

Fixes: #93790

Signed-off-by: default avatarHenrik Brix Andersen <henrik@brixandersen.dk>
(cherry picked from commit 3eedebe0)
parent 9cd8d8f4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
static char stdout_buff[_STDOUT_BUF_SIZE];
static int n_pend; /* Number of pending characters in buffer */

#if defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE)
static int print_char(int c)
{
	int printnow = 0;
@@ -34,6 +35,7 @@ static int print_char(int c)
	}
	return c;
}
#endif /* defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE) */

/**
 * Ensure that whatever was written thru printk is displayed now