coreboot-kgpe-d16/payloads/libpayload/curses
Mart Raudsepp c5a2ec6f96 libpayload: Fix build when both USB and PS/2 keyboard support is disabled
libpayload uses -Werror for some reason right now, and the
variable 'c' in curses_getchar is only used if CONFIG_USB_HID
or CONFIG_PC_KEYBOARD is defined, giving an unused variable
warning that gets promoted to an error.
So wrap the variable declaration around appropriate #ifdef's

Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Acked-by: Ulf Jordan <jordan@chalmers.se>

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3957 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2009-02-22 23:13:33 +00:00
..
Makefile.inc Move curses/speaker.c to drivers/ as it's not curses-specific (trivial). 2008-04-15 17:24:08 +00:00
colors.c Fix code to allow usage of -Wall in libpayload and the sample (trivial). 2008-03-20 20:46:44 +00:00
keyboard.c libpayload: Fix build when both USB and PS/2 keyboard support is disabled 2009-02-22 23:13:33 +00:00
local.h [PATCH] libpayload: rename config.h to libpayload-config.h 2008-11-24 17:54:46 +00:00
tinycurses.c move variable declaration to where it is used, to prevent gcc failure. 2008-10-08 11:17:25 +00:00