Commit b753eff6 authored by Andrew Twyman's avatar Andrew Twyman

Add missing return to silence warning

parent 3edad97c
...@@ -375,6 +375,7 @@ template<int wcharTypeSize> ...@@ -375,6 +375,7 @@ template<int wcharTypeSize>
static std::u16string implWStringToUTF16(const std::wstring & str) static std::u16string implWStringToUTF16(const std::wstring & str)
{ {
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
} }
template<> template<>
...@@ -482,6 +483,7 @@ template<int wcharTypeSize> ...@@ -482,6 +483,7 @@ 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
} }
template<> template<>
......
...@@ -122,6 +122,7 @@ template<int wcharTypeSize> ...@@ -122,6 +122,7 @@ template<int wcharTypeSize>
static CFStringEncoding getWCharEncoding() static CFStringEncoding getWCharEncoding()
{ {
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
} }
template<> template<>
......
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