Re: [SMACK] Build-time warning from Linux 5.6.2: unused variable âsipâ

From: Casey Schaufler
Date: Mon Apr 06 2020 - 11:46:42 EST


On 4/6/2020 5:02 AM, Jordan Glover wrote:
> Hello, during build of Linux 5.6.2 (also happened on 5.5.x series)
> gcc (9.3) prints following warning:
>
> security/smack/smack_lsm.c: In function âsmack_socket_connectâ:
> security/smack/smack_lsm.c:2838:24: warning: unused variable âsipâ [-Wunused-variable]
> 2838 | struct sockaddr_in6 *sip = (struct sockaddr_in6 *)sap;
>
> My kernel has set CONFIG_IPV6=n during build.

Thank you for reporting this.

>
> Jordan
>
>
>
>
>