mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-13 06:37:25 +00:00
Silence lwip_tolower compiler warning
Fix gcc build warning: array subscript has type 'char' [-Wchar-subscripts]. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
b0e5eeb7d2
commit
7c03f4cf46
@ -229,7 +229,7 @@ typedef int ssize_t;
|
||||
#define lwip_isxdigit(c) isxdigit((unsigned char)(c))
|
||||
#define lwip_islower(c) islower((unsigned char)(c))
|
||||
#define lwip_isspace(c) isspace((unsigned char)(c))
|
||||
#define lwip_tolower(c) tolower(c)
|
||||
#define lwip_tolower(c) tolower((unsigned char)(c))
|
||||
#endif
|
||||
|
||||
/** C++ const_cast<target_type>(val) equivalent to remove constness from a value (GCC -Wcast-qual) */
|
||||
|
Loading…
Reference in New Issue
Block a user