diff options
author | Ron Yorston <rmy@pobox.com> | 2016-07-05 14:07:50 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-07-05 21:21:36 +0200 |
commit | 1b0dcc02dd5a101d1a62f2111892a41621be96cf (patch) | |
tree | d83e4e9623d6b6686cd1ec078a6c1981d3092040 | |
parent | ee772a0d90e2775cbe40072fd5217552c260a9aa (diff) | |
download | busybox-w32-1b0dcc02dd5a101d1a62f2111892a41621be96cf.tar.gz busybox-w32-1b0dcc02dd5a101d1a62f2111892a41621be96cf.tar.bz2 busybox-w32-1b0dcc02dd5a101d1a62f2111892a41621be96cf.zip |
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>
-rw-r--r-- | libbb/appletlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 480bf50fc..791b81c17 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -52,8 +52,6 @@ | |||
52 | 52 | ||
53 | #include "usage_compressed.h" | 53 | #include "usage_compressed.h" |
54 | 54 | ||
55 | static void run_applet_and_exit(const char *name, char **argv) NORETURN; | ||
56 | |||
57 | #if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE | 55 | #if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE |
58 | static const char usage_messages[] ALIGN1 = UNPACKED_USAGE; | 56 | static const char usage_messages[] ALIGN1 = UNPACKED_USAGE; |
59 | #else | 57 | #else |
@@ -711,6 +709,8 @@ static void install_links(const char *busybox UNUSED_PARAM, | |||
711 | # endif | 709 | # endif |
712 | 710 | ||
713 | # if ENABLE_BUSYBOX | 711 | # if ENABLE_BUSYBOX |
712 | static void run_applet_and_exit(const char *name, char **argv) NORETURN; | ||
713 | |||
714 | /* If we were called as "busybox..." */ | 714 | /* If we were called as "busybox..." */ |
715 | static int busybox_main(char **argv) | 715 | static int busybox_main(char **argv) |
716 | { | 716 | { |