]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/unichar.cpp
compilation fix for PCH-less compilation after the last change
[wxWidgets.git] / src / common / unichar.cpp
index 653e33f14e066a0af2f9b8c1cac23f6e8d0c425f..d75555acd925beb123b657f81c36c7e33a7b32d8 100644 (file)
@@ -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;