warning: label 'out1' defined but not used

Denys Vlasenko vda.linux at googlemail.com
Thu Nov 19 12:18:05 UTC 2020


Applied, thanks.

On Wed, Nov 18, 2020 at 10:41 AM Cristian Ionescu-Idbohrn
<cristian.ionescu-idbohrn at axis.com> wrote:
>
> I'm seeing this warning:
>
> shell/ash.c: In function 'subevalvar':
> shell/ash.c:7280:2: warning: label 'out1' defined but not used [-Wunused-label]
>  7280 |  out1:
>       |  ^~~~
>
> It appears this patch:
>
> diff --git a/shell/ash.c b/shell/ash.c
> index d1ca3451d..8c9a590d1 100644
> --- a/shell/ash.c
> +++ b/shell/ash.c
> @@ -7277,7 +7277,9 @@ subevalvar(char *start, char *str, int strloc,
>   out:
>         amount = loc - expdest;
>         STADJUST(amount, expdest);
> +#if BASH_PATTERN_SUBST
>   out1:
> +#endif
>         /* Remove any recorded regions beyond start of variable */
>         removerecordregions(startloc);
>
> gets rid of it.
>
>
> Cheers,
>
> --
> Cristian
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list