suppress unused parameter warning in UTF8-only build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,6 +40,8 @@ wxUniChar::value_type wxUniChar::FromHi8bit(char c)
|
|||||||
{
|
{
|
||||||
#if wxUSE_UTF8_LOCALE_ONLY
|
#if wxUSE_UTF8_LOCALE_ONLY
|
||||||
wxFAIL_MSG( "invalid UTF-8 character" );
|
wxFAIL_MSG( "invalid UTF-8 character" );
|
||||||
|
wxUnusedVar(c);
|
||||||
|
|
||||||
return wxT('?'); // FIXME-UTF8: what to use as failure character?
|
return wxT('?'); // FIXME-UTF8: what to use as failure character?
|
||||||
#else
|
#else
|
||||||
wchar_t buf[2];
|
wchar_t buf[2];
|
||||||
@@ -57,6 +59,8 @@ char wxUniChar::ToHi8bit(wxUniChar::value_type c)
|
|||||||
{
|
{
|
||||||
#if wxUSE_UTF8_LOCALE_ONLY
|
#if wxUSE_UTF8_LOCALE_ONLY
|
||||||
wxFAIL_MSG( "character cannot be converted to single UTF-8 byte" );
|
wxFAIL_MSG( "character cannot be converted to single UTF-8 byte" );
|
||||||
|
wxUnusedVar(c);
|
||||||
|
|
||||||
return '?'; // FIXME-UTF8: what to use as failure character?
|
return '?'; // FIXME-UTF8: what to use as failure character?
|
||||||
#else
|
#else
|
||||||
wchar_t in = c;
|
wchar_t in = c;
|
||||||
|
Reference in New Issue
Block a user