From eea9eca563844f84f92c738b1d2fd01fe9d472fc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 12 Nov 2007 21:48:34 +0000 Subject: [PATCH] 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 --- src/common/unichar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/unichar.cpp b/src/common/unichar.cpp index 653e33f14e..d75555acd9 100644 --- a/src/common/unichar.cpp +++ b/src/common/unichar.cpp @@ -40,6 +40,8 @@ wxUniChar::value_type wxUniChar::FromHi8bit(char c) { #if wxUSE_UTF8_LOCALE_ONLY wxFAIL_MSG( "invalid UTF-8 character" ); + wxUnusedVar(c); + return wxT('?'); // FIXME-UTF8: what to use as failure character? #else wchar_t buf[2]; @@ -57,6 +59,8 @@ char wxUniChar::ToHi8bit(wxUniChar::value_type c) { #if wxUSE_UTF8_LOCALE_ONLY wxFAIL_MSG( "character cannot be converted to single UTF-8 byte" ); + wxUnusedVar(c); + return '?'; // FIXME-UTF8: what to use as failure character? #else wchar_t in = c;