diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-06-24 09:31:30 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-06-24 09:31:30 +0200 |
commit | d5314e71294d228cff5d86e00d15661461f68fc9 (patch) | |
tree | 82dbf50b79f7bde1889042dfd3214a7307e5cb12 | |
parent | 7c443d110d4dc51ba48bad8ed1427716b754bf2e (diff) | |
download | busybox-w32-d5314e71294d228cff5d86e00d15661461f68fc9.tar.gz busybox-w32-d5314e71294d228cff5d86e00d15661461f68fc9.tar.bz2 busybox-w32-d5314e71294d228cff5d86e00d15661461f68fc9.zip |
suppress a few compile warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/lineedit.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index de236dea0..e40a72064 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -99,7 +99,7 @@ static bool BB_ispunct(CHAR_T c) | |||
99 | # if ENABLE_FEATURE_EDITING_VI | 99 | # if ENABLE_FEATURE_EDITING_VI |
100 | static bool BB_isalnum_or_underscore(CHAR_T c) | 100 | static bool BB_isalnum_or_underscore(CHAR_T c) |
101 | { | 101 | { |
102 | return ((unsigned)c < 256 && isalnum(c)) || c == '_'; | 102 | return isalnum(c) || c == '_'; |
103 | } | 103 | } |
104 | # endif | 104 | # endif |
105 | # define BB_ispunct(c) ispunct(c) | 105 | # define BB_ispunct(c) ispunct(c) |
diff --git a/shell/hush.c b/shell/hush.c index cab7ea5b0..2cf2170ca 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -7917,7 +7917,7 @@ static const struct built_in_command *find_builtin(const char *name) | |||
7917 | return find_builtin_helper(name, bltins2, &bltins2[ARRAY_SIZE(bltins2)]); | 7917 | return find_builtin_helper(name, bltins2, &bltins2[ARRAY_SIZE(bltins2)]); |
7918 | } | 7918 | } |
7919 | 7919 | ||
7920 | #if EDITING_HAS_get_exe_name | 7920 | #if ENABLE_HUSH_JOB && EDITING_HAS_get_exe_name |
7921 | static const char * FAST_FUNC get_builtin_name(int i) | 7921 | static const char * FAST_FUNC get_builtin_name(int i) |
7922 | { | 7922 | { |
7923 | if (/*i >= 0 && */ i < ARRAY_SIZE(bltins1)) { | 7923 | if (/*i >= 0 && */ i < ARRAY_SIZE(bltins1)) { |