suppress a few compile warnings
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 24 Jun 2020 07:31:30 +0000 (09:31 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 24 Jun 2020 07:31:30 +0000 (09:31 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c
shell/hush.c

index de236dea0223f9b9845fd5c544652fc69fb1f594..e40a720648ad4484f319f74a26ee741628b20f48 100644 (file)
@@ -99,7 +99,7 @@ static bool BB_ispunct(CHAR_T c)
 # if ENABLE_FEATURE_EDITING_VI
 static bool BB_isalnum_or_underscore(CHAR_T c)
 {
-       return ((unsigned)c < 256 && isalnum(c)) || c == '_';
+       return isalnum(c) || c == '_';
 }
 # endif
 # define BB_ispunct(c) ispunct(c)
index cab7ea5b02a0d50c6e98dceecd82a8b808f57aa8..2cf2170ca26531cd6eb27bdc920663484e66085c 100644 (file)
@@ -7917,7 +7917,7 @@ static const struct built_in_command *find_builtin(const char *name)
        return find_builtin_helper(name, bltins2, &bltins2[ARRAY_SIZE(bltins2)]);
 }
 
-#if EDITING_HAS_get_exe_name
+#if ENABLE_HUSH_JOB && EDITING_HAS_get_exe_name
 static const char * FAST_FUNC get_builtin_name(int i)
 {
        if (/*i >= 0 && */ i < ARRAY_SIZE(bltins1)) {