Re: [PATCH] Fix warning -Wchar-subscripts in isspace() and isdigit() macro

2020-08-03 Thread Sebastian Huber
Hello Aschref, On 03/08/2020 14:46, Aschref Ben-Thabet wrote: From: Aschref Ben Thabet The warning may be because you're passing a char to the isspace() macro. The implementation of isspace() may be via array indexing. (The argument to the isspace()/isdegit() macro is defined to be an unsigned

[PATCH] Fix warning -Wchar-subscripts in isspace() and isdigit() macro

2020-08-03 Thread Aschref Ben-Thabet
From: Aschref Ben Thabet The warning may be because you're passing a char to the isspace() macro. The implementation of isspace() may be via array indexing. (The argument to the isspace()/isdegit() macro is defined to be an unsigned char the value of which can fit in an unsignedchar). at ctype.h