From 1a45b2ccea94b0fc123798f276a0801413597880 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 14 Apr 2021 19:12:43 +0200 Subject: fix "warning array subscript has type 'char'" Signed-off-by: Denys Vlasenko --- scripts/basic/split-include.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/basic/split-include.c') diff --git a/scripts/basic/split-include.c b/scripts/basic/split-include.c index a38ac34..6ef2919 100644 --- a/scripts/basic/split-include.c +++ b/scripts/basic/split-include.c @@ -116,7 +116,7 @@ int main(int argc, const char * argv []) /* We found #define CONFIG_foo or #undef CONFIG_foo. * Make the output file name. */ str_config += sizeof(" CONFIG_") - 1; - for (itarget = 0; !isspace(str_config[itarget]); itarget++) + for (itarget = 0; !isspace((unsigned char)str_config[itarget]); itarget++) { int c = (unsigned char) str_config[itarget]; if (isupper(c)) c = tolower(c); -- cgit v1.1