hush: conditionalize print_escaped() on EXPORT || TRAP
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Jan 2017 17:56:24 +0000 (18:56 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 8 Jan 2017 17:56:24 +0000 (18:56 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c

index 3050aeb8e65116ea59c6a760f48564608b4a24eb..9b62d5c0de8d2bdbd61e89ce1d451c135577375b 100644 (file)
@@ -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