From: Michael Brown Date: Wed, 4 May 2016 14:58:14 +0000 (+0100) Subject: [legacy] Fix building with GCC 6 X-Git-Tag: v1.20.1~458 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5885fbc19c4b60dc1a21624d1a9d1b77a93504e;p=thirdparty%2Fipxe.git [legacy] Fix building with GCC 6 Signed-off-by: Michael Brown --- diff --git a/src/include/nic.h b/src/include/nic.h index 4c91f57a6..8b06e88f4 100644 --- a/src/include/nic.h +++ b/src/include/nic.h @@ -209,7 +209,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 ); \