summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorRon Yorston2016-07-05 14:07:50 +0100
committerDenys Vlasenko2016-07-05 21:21:36 +0200
commit1b0dcc02dd5a101d1a62f2111892a41621be96cf (patch)
treed83e4e9623d6b6686cd1ec078a6c1981d3092040 /libbb
parentee772a0d90e2775cbe40072fd5217552c260a9aa (diff)
downloadbusybox-1b0dcc02dd5a101d1a62f2111892a41621be96cf.zip
busybox-1b0dcc02dd5a101d1a62f2111892a41621be96cf.tar.gz
libbb: suppress warning about run_applet_and_exit
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>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/appletlib.c4
1 files 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)
{