appletlib: fix set-but-unused warning
authorMike Frysinger <vapier@gentoo.org>
Fri, 31 Jan 2014 05:29:47 +0000 (00:29 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 31 Jan 2014 05:29:47 +0000 (00:29 -0500)
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>
libbb/appletlib.c

index 8f3a8a10b6f3027d52d1ce3308885090ce6444f5..f7c416ece8d52c719de2bd1e014ade0f54fde513 100644 (file)
@@ -606,7 +606,11 @@ static void install_links(const char *busybox, int use_symbolic_links,
        }
 }
 # else
-#  define install_links(x,y,z) ((void)0)
+static void install_links(const char *busybox UNUSED_PARAM,
+               int use_symbolic_links UNUSED_PARAM,
+               char *custom_install_dir UNUSED_PARAM)
+{
+}
 # endif
 
 /* If we were called as "busybox..." */