mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 17:42:47 +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:
@@ -131,7 +131,7 @@
|
||||
* ...
|
||||
* }
|
||||
*
|
||||
* static struct frob my_frobnicator __frobnicator = {
|
||||
* struct frob my_frobnicator __frobnicator = {
|
||||
* .name = "my_frob",
|
||||
* .frob = my_frob,
|
||||
* };
|
||||
@@ -184,7 +184,7 @@
|
||||
*
|
||||
* @code
|
||||
*
|
||||
* static struct my_foo __table ( foo, 01 ) = {
|
||||
* struct my_foo __table ( foo, 01 ) = {
|
||||
* ...
|
||||
* };
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user