[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] libbb: suppress warning about run_applet_and_exit
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2016-07-05 19:38:50
Message-ID: CAK1hOcNUhpezfzRw6048soDQMiU+6gq7DAbKd2Wu7DodcUuWwg () mail ! gmail ! com
[Download RAW message or body]

Applied, thanks!

On Tue, Jul 5, 2016 at 3:07 PM, Ron Yorston <rmy@pobox.com> wrote:
> When busybox is configured to contain a single applet an unnecessary
> declaration of run_applet_and_exit results in a warning.  Move the
> declaration to avoid this.
>
> Reported-by: Lauri Kasanen <curaga@operamail.com>
> Signed-off-by: Ron Yorston <rmy@pobox.com>
> ---
>  libbb/appletlib.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libbb/appletlib.c b/libbb/appletlib.c
> index 480bf50..791b81c 100644
> --- a/libbb/appletlib.c
> +++ b/libbb/appletlib.c
> @@ -52,8 +52,6 @@
>
>  #include "usage_compressed.h"
>
> -static void run_applet_and_exit(const char *name, char **argv) NORETURN;
> -
>  #if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE
>  static const char usage_messages[] ALIGN1 = UNPACKED_USAGE;
>  #else
> @@ -711,6 +709,8 @@ static void install_links(const char *busybox UNUSED_PARAM,
>  # endif
>
>  # if ENABLE_BUSYBOX
> +static void run_applet_and_exit(const char *name, char **argv) NORETURN;
> +
>  /* If we were called as "busybox..." */
>  static int busybox_main(char **argv)
>  {
> --
> 2.5.5
>
> _______________________________________________
> 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