libbb: suppress warning about run_applet_and_exit
authorRon Yorston <rmy@pobox.com>
Tue, 5 Jul 2016 13:07:50 +0000 (14:07 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 5 Jul 2016 19:21:36 +0000 (21:21 +0200)
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>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/appletlib.c

index 480bf50fc333170db24cf98a30073409d55f4d13..791b81c173a3b2522f6ae032f1ab390d1d553e38 100644 (file)
@@ -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)
 {