From: Denys Vlasenko Date: Mon, 9 Jan 2017 05:19:55 +0000 (+0100) Subject: hush: fix 'defined but not used' warning X-Git-Tag: 1_27_0~263 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cc2fd5a9867519da24672fae560e511a4a6940e7;p=oweals%2Fbusybox.git hush: fix 'defined but not used' warning Signed-off-by: Denys Vlasenko --- diff --git a/shell/hush.c b/shell/hush.c index c10793060..faff86d88 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 /*