Re: WITH_BHYVE_SNAPSHOT broken after 9cc9abf4

From: Emmanuel Vadot <manu_at_bidouilliste.com>
Date: Tue, 13 Sep 2022 06:34:03 UTC
On Mon, 12 Sep 2022 23:05:29 +0000
Filipe da Silva Santos <contact@mail.shiori.com.br> wrote:

> int vcpu declared in line 1247 isn't being used, since it's now being
> redefined inside the for loop in line 1589.
> 
> diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c
> index 550cc9d15..27f1d8ea8 100644
> --- a/usr.sbin/bhyve/bhyverun.c
> +++ b/usr.sbin/bhyve/bhyverun.c
> @@ -1244,7 +1244,6 @@ main(int argc, char *argv[])
>  #ifdef BHYVE_SNAPSHOT
> 	char *restore_file;
> 	struct restore_state rstate;
> -       int vcpu;
> 
> 	restore_file = NULL;
>  #endif

 Hello Filipe,

 Sorry for the breakage, should be fixed in 10c6af344108.

-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>