fixing warning introduced by __WCHAR_MAX__ patch

This commit is contained in:
Karel Miko 2017-02-28 23:20:19 +01:00
parent b3534def42
commit 50aedb099c

View File

@ -47,6 +47,7 @@ unsigned long der_utf8_charsize(const wchar_t c)
*/ */
int der_utf8_valid_char(const wchar_t c) int der_utf8_valid_char(const wchar_t c)
{ {
LTC_UNUSED_PARAM(c);
#if !defined(__WCHAR_MAX__) || __WCHAR_MAX__ > 0xFFFF #if !defined(__WCHAR_MAX__) || __WCHAR_MAX__ > 0xFFFF
if (c > 0x10FFFF) return 0; if (c > 0x10FFFF) return 0;
#endif #endif