From ecdcdea1afb967a8d727a7a970cac5f2b7ae189a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 7 Aug 2006 17:06:31 +0000 Subject: [PATCH] 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. --- src/include/gpxe/tables.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/gpxe/tables.h b/src/include/gpxe/tables.h index 1fdbbfd7..385bb525 100644 --- a/src/include/gpxe/tables.h +++ b/src/include/gpxe/tables.h @@ -192,7 +192,7 @@ * */ #define __table(table,idx) \ - __attribute__ (( unused, __table_section(table,idx) )) + __attribute__ (( __table_section(table,idx) )) /** * Linker table start marker. @@ -208,7 +208,7 @@ * */ #define __table_start(table) \ - __attribute__ (( unused, __table_section_start(table) )) + __attribute__ (( __table_section_start(table) )) /** * Linker table end marker. @@ -224,6 +224,6 @@ * */ #define __table_end(table) \ - __attribute__ (( unused, __table_section_end(table) )) + __attribute__ (( __table_section_end(table) )) #endif /* _GPXE_TABLES_H */