From 41ade05cacd61a42e348f21aeddb7b12b0ad5d3d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 8 Jan 2017 18:56:24 +0100 Subject: hush: conditionalize print_escaped() on EXPORT || TRAP Signed-off-by: Denys Vlasenko --- shell/hush.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shell') diff --git a/shell/hush.c b/shell/hush.c index 3050aeb8e..9b62d5c0d 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -8936,6 +8936,7 @@ static int FAST_FUNC builtin_exit(char **argv) hush_exit(xatoi(argv[0]) & 0xff); } +#if ENABLE_HUSH_EXPORT || ENABLE_HUSH_TRAP static void print_escaped(const char *s) { if (*s == '\'') @@ -8954,6 +8955,7 @@ static void print_escaped(const char *s) putchar('"'); } while (*s); } +#endif #if ENABLE_HUSH_EXPORT || ENABLE_HUSH_LOCAL # if !ENABLE_HUSH_LOCAL -- cgit v1.2.3