Fix tinycurses compilation when only serial console is enabled (unused variable c caught by -Wall -Werror). Thanks to Mats Erik Andersson for spotting this. Signed-off-by: Ulf Jordan Index: libpayload/curses/tinycurses.c =================================================================== --- libpayload/curses/tinycurses.c (revision 3625) +++ libpayload/curses/tinycurses.c (working copy) @@ -736,9 +736,6 @@ for (x = win->_line[y].firstchar; x <= win->_line[y].lastchar; x++) { attr_t attr = win->_line[y].text[x].attr; - unsigned int c = - ((int)color_pairs[PAIR_NUMBER(attr)]) << 8; - #ifdef CONFIG_SERIAL_CONSOLE if (curses_flags & F_ENABLE_SERIAL) { ch = win->_line[y].text[x].chars[0]; @@ -806,6 +803,9 @@ } #endif #ifdef CONFIG_VIDEO_CONSOLE + unsigned int c = + ((int)color_pairs[PAIR_NUMBER(attr)]) << 8; + c = SWAP_RED_BLUE(c); if (curses_flags & F_ENABLE_CONSOLE) {