[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: warning: label 'out1' defined but not used
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2020-11-19 12:18:05
Message-ID: CAK1hOcMps08Kx2QoiyX6SVEERU=8fkRrNMR3EGKL2RLCVemuKA () mail ! gmail ! com
[Download RAW message or body]
Applied, thanks.
On Wed, Nov 18, 2020 at 10:41 AM Cristian Ionescu-Idbohrn
<cristian.ionescu-idbohrn@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@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic