projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5362cc4
)
hush: fix 'defined but not used' warning
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Jan 2017 05:19:55 +0000
(06:19 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Jan 2017 05:19:55 +0000
(06:19 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
patch
|
blob
|
history
diff --git
a/shell/hush.c
b/shell/hush.c
index c1079306086e4b6ec86c16df447525ec8a915872..faff86d884326ec1e3ffcf5998fd392b84cb7699 100644
(file)
--- 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
/*