Browse Source

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>
STABLE-2_1_x
Axel Lin 8 years ago
parent
commit
7c03f4cf46
  1. 2
      src/include/lwip/arch.h

2
src/include/lwip/arch.h

@ -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…
Cancel
Save