Browse Source

Remove unused attribute from __table macros; the tables are no longer

static since otherwise gcc4 optimises them away completely.  Also, it
really *is* an error if the table start and end are unused, so they
certainly shouldn't be marked with attribute unused.
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
ecdcdea1af
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/include/gpxe/tables.h

+ 3
- 3
src/include/gpxe/tables.h View File

192
  *
192
  *
193
  */
193
  */
194
 #define __table(table,idx) \
194
 #define __table(table,idx) \
195
-	__attribute__ (( unused, __table_section(table,idx) ))
195
+	__attribute__ (( __table_section(table,idx) ))
196
 
196
 
197
 /**
197
 /**
198
  * Linker table start marker.
198
  * Linker table start marker.
208
  *
208
  *
209
  */
209
  */
210
 #define __table_start(table) \
210
 #define __table_start(table) \
211
-	__attribute__ (( unused, __table_section_start(table) ))
211
+	__attribute__ (( __table_section_start(table) ))
212
 
212
 
213
 /**
213
 /**
214
  * Linker table end marker.
214
  * Linker table end marker.
224
  *
224
  *
225
  */
225
  */
226
 #define __table_end(table) \
226
 #define __table_end(table) \
227
-	__attribute__ (( unused, __table_section_end(table) ))
227
+	__attribute__ (( __table_section_end(table) ))
228
 
228
 
229
 #endif /* _GPXE_TABLES_H */
229
 #endif /* _GPXE_TABLES_H */

Loading…
Cancel
Save