lkml.org 
[lkml]   [2021]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] netfilter: nft_socket: fix an unused variable warning
On Tue, Apr 27, 2021 at 09:45:18PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> The variable is only used in an #ifdef, causing a harmless warning:
>
> net/netfilter/nft_socket.c: In function 'nft_socket_init':
> net/netfilter/nft_socket.c:137:27: error: unused variable 'level' [-Werror=unused-variable]
> 137 | unsigned int len, level;
> | ^~~~~
>
> Move it into the same #ifdef block.

Applied, thanks Arnd.

\
 
 \ /
  Last update: 2021-04-27 22:37    [W:0.027 / U:2.940 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site