Commit 348e804b authored by Andrew Twyman's avatar Andrew Twyman Committed by GitHub

Merge pull request #296 from alexcohn/alexcohn-fix-294

fixing error from clang (issue #294)
parents 1d74e310 715c6205
...@@ -482,7 +482,7 @@ std::string jniUTF8FromString(JNIEnv * env, const jstring jstr) { ...@@ -482,7 +482,7 @@ std::string jniUTF8FromString(JNIEnv * env, const jstring jstr) {
} }
template<int wcharTypeSize> template<int wcharTypeSize>
static std::wstring implUTF16ToWString(const char16_t * data, size_t length) static std::wstring implUTF16ToWString(const char16_t * /*data*/, size_t /*length*/)
{ {
static_assert(wcharTypeSize == 2 || wcharTypeSize == 4, "wchar_t must be represented by UTF-16 or UTF-32 encoding"); static_assert(wcharTypeSize == 2 || wcharTypeSize == 4, "wchar_t must be represented by UTF-16 or UTF-32 encoding");
return {}; // unreachable return {}; // unreachable
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment