> Date: Mon, 25 Oct 2021 16:44:48 +0200
> From: Patrick Wildt <patr...@blueri.se>
> 
> Hi,
> 
> this fixes the build of sys/arch/amd64/stand with LLVM 13.
> 
> ok?

ok kettenis@

> diff --git a/sys/lib/libsa/netif.c b/sys/lib/libsa/netif.c
> index d1a5e180291..79c6496878e 100644
> --- a/sys/lib/libsa/netif.c
> +++ b/sys/lib/libsa/netif.c
> @@ -85,7 +85,7 @@ netif_match(struct netif *nif, void *machdep_hint)
>  struct netif *
>  netif_select(void *machdep_hint)
>  {
> -     int d, u, unit_done, s;
> +     int d, u, s;
>       struct netif_driver *drv;
>       struct netif cur_if;
>       static struct netif best_if;
> @@ -106,7 +106,6 @@ netif_select(void *machdep_hint)
>  
>               for (u = 0; u < drv->netif_nifs; u++) {
>                       cur_if.nif_unit = u;
> -                     unit_done = 0;
>  
>  #ifdef NETIF_DEBUG
>                       if (netif_debug)
> diff --git a/sys/lib/libsa/tftp.c b/sys/lib/libsa/tftp.c
> index 3eea8bbe66e..6bfca23a761 100644
> --- a/sys/lib/libsa/tftp.c
> +++ b/sys/lib/libsa/tftp.c
> @@ -383,9 +383,6 @@ tftp_write(struct open_file *f, void *start, size_t size, 
> size_t *resid)
>  int
>  tftp_stat(struct open_file *f, struct stat *sb)
>  {
> -     struct tftp_handle *tftpfile;
> -     tftpfile = (struct tftp_handle *) f->f_fsdata;
> -
>       sb->st_mode = 0444;
>       sb->st_nlink = 1;
>       sb->st_uid = 0;
> 
> 

Reply via email to