File ipxe.a5885fbc19c4b60dc1a21624d1a9d1b77a93504e.patch of Package xen

From: Michael Brown <mcb30@ipxe.org>
Date: Wed, 4 May 2016 15:58:14 +0100
Subject: a5885fbc19c4b60dc1a21624d1a9d1b77a93504e

[legacy] Fix building with GCC 6

Signed-off-by: Michael Brown <mcb30@ipxe.org>
---
 src/include/nic.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/src/include/nic.h
+++ b/src/include/nic.h
@@ -199,7 +199,8 @@ static inline void * legacy_isa_get_drvdata ( void *hwdev ) {
 
 #undef DRIVER
 #define DRIVER(_name_text,_unused2,_unused3,_name,_probe,_disable)	  \
-	static const char _name ## _text[] = _name_text;		  \
+	static __attribute__ (( unused )) const char			  \
+	_name ## _text[] = _name_text;					  \
 	static inline int						  \
 	_name ## _probe ( struct nic *nic, void *hwdev ) {		  \
 		return _probe ( nic, hwdev );				  \
openSUSE Build Service is sponsored by