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

@@ -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 ) = {
* ...
* };
*