diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-01-31 00:29:47 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-01-31 00:29:47 -0500 |
commit | f1999b5a9d2788cdc120b1ee2ab1de18e95b38f2 (patch) | |
tree | 4e5f99ca384562df2dbc1af1ebdf0d83981f4bb0 /libbb/appletlib.c | |
parent | 29ed580668865d68ab8c1020bf3a79e2f2ceaa55 (diff) | |
download | busybox-w32-f1999b5a9d2788cdc120b1ee2ab1de18e95b38f2.tar.gz busybox-w32-f1999b5a9d2788cdc120b1ee2ab1de18e95b38f2.tar.bz2 busybox-w32-f1999b5a9d2788cdc120b1ee2ab1de18e95b38f2.zip |
appletlib: fix set-but-unused warning
When you build with FEATURE_INSTALLER disabled, you get a build
warning like so:
libbb/appletlib.c: In function 'busybox_main':
libbb/appletlib.c:691:7: warning: variable 'use_symbolic_links' set but
not used [-Wunused-but-set-variable]
int use_symbolic_links;
^
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 8f3a8a10b..f7c416ece 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -606,7 +606,11 @@ static void install_links(const char *busybox, int use_symbolic_links, | |||
606 | } | 606 | } |
607 | } | 607 | } |
608 | # else | 608 | # else |
609 | # define install_links(x,y,z) ((void)0) | 609 | static void install_links(const char *busybox UNUSED_PARAM, |
610 | int use_symbolic_links UNUSED_PARAM, | ||
611 | char *custom_install_dir UNUSED_PARAM) | ||
612 | { | ||
613 | } | ||
610 | # endif | 614 | # endif |
611 | 615 | ||
612 | /* If we were called as "busybox..." */ | 616 | /* If we were called as "busybox..." */ |