summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2017-01-09 06:19:55 +0100
committerDenys Vlasenko2017-01-09 06:19:55 +0100
commitcc2fd5a9867519da24672fae560e511a4a6940e7 (patch)
tree7345eda1098796932e4a25b11f9d480dc1bde41c
parent5362cc4b8caa5c4b8bf815d8ac2fd50a0d8e9354 (diff)
downloadbusybox-cc2fd5a9867519da24672fae560e511a4a6940e7.zip
busybox-cc2fd5a9867519da24672fae560e511a4a6940e7.tar.gz
hush: fix 'defined but not used' warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/hush.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c
index c107930..faff86d 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2182,11 +2182,13 @@ static void unset_vars(char **strings)
free(strings);
}
+#if ENABLE_FEATURE_SH_MATH || ENABLE_HUSH_BASH_COMPAT || ENABLE_HUSH_READ
static void FAST_FUNC set_local_var_from_halves(const char *name, const char *val)
{
char *var = xasprintf("%s=%s", name, val);
set_local_var(var, /*flags:*/ 0, /*lvl:*/ 0, /*ro:*/ 0);
}
+#endif
/*