gcc is rather over-aggressive about optimising out static data structures

even when __atribute__ (( unused )) is correctly set...
This commit is contained in:
Michael Brown
2006-04-24 18:31:37 +00:00
parent 4c4e4de18f
commit 832e86246b
21 changed files with 35 additions and 35 deletions

View File

@@ -91,7 +91,7 @@
#define uart_writeb(val,addr) outb((val),(addr))
#endif
static struct console_driver serial_console;
struct console_driver serial_console;
/*
* void serial_putc(int ch);
@@ -229,7 +229,7 @@ static void serial_fini ( void ) {
/* Don't mark it as disabled; it's still usable */
}
static struct console_driver serial_console __console_driver = {
struct console_driver serial_console __console_driver = {
.putchar = serial_putc,
.getchar = serial_getc,
.iskey = serial_ischar,