summaryrefslogtreecommitdiff
path: root/pcr/xen/patch-gcc6-etherboot-via-velocity.c.patch
blob: 36a3d81158f4540c2ca241838bf4941489cb87c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -aur a/src/drivers/net/via-velocity.c b/src/drivers/net/via-velocity.c
--- a/src/drivers/net/via-velocity.c	2016-05-12 19:14:33.231788641 +1000
+++ b/src/drivers/net/via-velocity.c	2016-05-12 19:17:08.235494746 +1000
@@ -69,7 +69,7 @@
 
 /* NIC specific static variables go here */
 #define VELOCITY_PARAM(N,D) \
-        static const int N[MAX_UNITS]=OPTION_DEFAULT;
+        static __attribute__ ((unused)) const int N[MAX_UNITS]=OPTION_DEFAULT;
 /*        MODULE_PARM(N, "1-" __MODULE_STRING(MAX_UNITS) "i");\
         MODULE_PARM_DESC(N, D); */