mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 02:28:57 +03:00
gcc is rather over-aggressive about optimising out static data structures
even when __atribute__ (( unused )) is correctly set...
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "init.h"
|
||||
#include "vga.h"
|
||||
|
||||
static struct console_driver vga_console;
|
||||
struct console_driver vga_console;
|
||||
|
||||
static char *vidmem; /* The video buffer */
|
||||
static int video_line, video_col;
|
||||
@@ -94,7 +94,7 @@ static void vga_putc(int byte)
|
||||
write_crtc((video_col + (video_line *COLS)) & 0x0ff, CRTC_CURSOR_LO);
|
||||
}
|
||||
|
||||
static struct console_driver vga_console __console_driver = {
|
||||
struct console_driver vga_console __console_driver = {
|
||||
.putchar = vga_putc,
|
||||
.disabled = 1,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user