e07f3c2588
To add to the previous changes over the last day or so, we now are gcc6 and perl 5.24 compatible. yeah! OBS-URL: https://build.opensuse.org/request/show/399560 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=295
29 lines
957 B
Diff
29 lines
957 B
Diff
From a5885fbc19c4b60dc1a21624d1a9d1b77a93504e Mon Sep 17 00:00:00 2001
|
|
From: Michael Brown <mcb30@ipxe.org>
|
|
Date: Wed, 4 May 2016 15:58:14 +0100
|
|
Subject: [PATCH] [legacy] Fix building with GCC 6
|
|
|
|
Signed-off-by: Michael Brown <mcb30@ipxe.org>
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
---
|
|
src/include/nic.h | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/include/nic.h b/src/include/nic.h
|
|
index 4c91f57..8b06e88 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 ); \
|
|
--
|
|
1.9.0
|
|
|