Parcourir la 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 il y a 18 ans
Parent
révision
ecdcdea1af
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3
    3
      src/include/gpxe/tables.h

+ 3
- 3
src/include/gpxe/tables.h Voir le fichier

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

Chargement…
Annuler
Enregistrer