mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
move variable declaration to where it is used, to prevent gcc failure.
Reported by Roman Yeryomin (and also seen reported earlier). (trivial) Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3641 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
964f066559
commit
ff9350b798
1 changed files with 3 additions and 3 deletions
|
@ -736,9 +736,6 @@ int wnoutrefresh(WINDOW *win)
|
||||||
for (x = win->_line[y].firstchar; x <= win->_line[y].lastchar; x++) {
|
for (x = win->_line[y].firstchar; x <= win->_line[y].lastchar; x++) {
|
||||||
attr_t attr = win->_line[y].text[x].attr;
|
attr_t attr = win->_line[y].text[x].attr;
|
||||||
|
|
||||||
unsigned int c =
|
|
||||||
((int)color_pairs[PAIR_NUMBER(attr)]) << 8;
|
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_CONSOLE
|
#ifdef CONFIG_SERIAL_CONSOLE
|
||||||
if (curses_flags & F_ENABLE_SERIAL) {
|
if (curses_flags & F_ENABLE_SERIAL) {
|
||||||
ch = win->_line[y].text[x].chars[0];
|
ch = win->_line[y].text[x].chars[0];
|
||||||
|
@ -806,6 +803,9 @@ int wnoutrefresh(WINDOW *win)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_VIDEO_CONSOLE
|
#ifdef CONFIG_VIDEO_CONSOLE
|
||||||
|
unsigned int c =
|
||||||
|
((int)color_pairs[PAIR_NUMBER(attr)]) << 8;
|
||||||
|
|
||||||
c = SWAP_RED_BLUE(c);
|
c = SWAP_RED_BLUE(c);
|
||||||
|
|
||||||
if (curses_flags & F_ENABLE_CONSOLE) {
|
if (curses_flags & F_ENABLE_CONSOLE) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue