Re: [PATCH] vxlan: hide unused local variable

2016-11-09 Thread David Miller
From: Arnd Bergmann Date: Mon, 7 Nov 2016 22:09:07 +0100 > A bugfix introduced a harmless warning in v4.9-rc4: > > drivers/net/vxlan.c: In function 'vxlan_group_used': > drivers/net/vxlan.c:947:21: error: unused variable 'sock6' > [-Werror=unused-variable] > > This hides the variable inside o

Re: [PATCH] vxlan: hide unused local variable

2016-11-09 Thread Jiri Benc
On Mon, 7 Nov 2016 22:09:07 +0100, Arnd Bergmann wrote: > A bugfix introduced a harmless warning in v4.9-rc4: > > drivers/net/vxlan.c: In function 'vxlan_group_used': > drivers/net/vxlan.c:947:21: error: unused variable 'sock6' > [-Werror=unused-variable] > > This hides the variable inside of t

Re: [PATCH] vxlan: hide unused local variable

2016-11-07 Thread Arnd Bergmann
On Monday, November 7, 2016 2:16:30 PM CET Pravin Shelar wrote: > On Monday, November 7, 2016, Arnd Bergmann wrote: > > > A bugfix introduced a harmless warning in v4.9-rc4: > > > > drivers/net/vxlan.c: In function 'vxlan_group_used': > > drivers/net/vxlan.c:947:21: error: unused variable 'sock6'

[PATCH] vxlan: hide unused local variable

2016-11-07 Thread Arnd Bergmann
A bugfix introduced a harmless warning in v4.9-rc4: drivers/net/vxlan.c: In function 'vxlan_group_used': drivers/net/vxlan.c:947:21: error: unused variable 'sock6' [-Werror=unused-variable] This hides the variable inside of the same #ifdef that is around its user. The extraneous initialization i