Browse Source

[legacy] Fix building with GCC 6

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
a5885fbc19
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/include/nic.h

+ 2
- 1
src/include/nic.h View File

@@ -209,7 +209,8 @@ static inline void * legacy_isa_get_drvdata ( void *hwdev ) {
209 209
 
210 210
 #undef DRIVER
211 211
 #define DRIVER(_name_text,_unused2,_unused3,_name,_probe,_disable)	  \
212
-	static const char _name ## _text[] = _name_text;		  \
212
+	static __attribute__ (( unused )) const char			  \
213
+	_name ## _text[] = _name_text;					  \
213 214
 	static inline int						  \
214 215
 	_name ## _probe ( struct nic *nic, void *hwdev ) {		  \
215 216
 		return _probe ( nic, hwdev );				  \

Loading…
Cancel
Save