summaryrefslogtreecommitdiffstats
path: root/src/include/nic.h
diff options
context:
space:
mode:
authorMichael Brown2016-05-04 16:58:14 +0200
committerMichael Brown2016-05-04 17:01:33 +0200
commita5885fbc19c4b60dc1a21624d1a9d1b77a93504e (patch)
treec5463ce7bc6ecea4098d6f1415af7f6f880f9231 /src/include/nic.h
parent[ath] Fix building with GCC 6 (diff)
downloadipxe-a5885fbc19c4b60dc1a21624d1a9d1b77a93504e.tar.gz
ipxe-a5885fbc19c4b60dc1a21624d1a9d1b77a93504e.tar.xz
ipxe-a5885fbc19c4b60dc1a21624d1a9d1b77a93504e.zip
[legacy] Fix building with GCC 6
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/nic.h')
-rw-r--r--src/include/nic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/nic.h b/src/include/nic.h
index 4c91f57a..8b06e88f 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 ); \