fix harmless warning about unreachable code under MSW after last commit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-22 09:05:58 +00:00
parent 114895c68b
commit 0e5bf041b0

View File

@@ -479,7 +479,6 @@ wxRendererNative *wxGUIAppTraitsBase::CreateRenderer()
bool wxGUIAppTraitsBase::ShowAssertDialog(const wxString& msg) bool wxGUIAppTraitsBase::ShowAssertDialog(const wxString& msg)
{ {
#if wxDEBUG_LEVEL
// under MSW we prefer to use the base class version using ::MessageBox() // under MSW we prefer to use the base class version using ::MessageBox()
// even if wxMessageBox() is available because it has less chances to // even if wxMessageBox() is available because it has less chances to
// double fault our app than our wxMessageBox() // double fault our app than our wxMessageBox()
@@ -491,6 +490,7 @@ bool wxGUIAppTraitsBase::ShowAssertDialog(const wxString& msg)
#if defined(__WXMSW__) || defined(__WXDFB__) || !wxUSE_MSGDLG #if defined(__WXMSW__) || defined(__WXDFB__) || !wxUSE_MSGDLG
return wxAppTraitsBase::ShowAssertDialog(msg); return wxAppTraitsBase::ShowAssertDialog(msg);
#else // wxUSE_MSGDLG #else // wxUSE_MSGDLG
#if wxDEBUG_LEVEL
wxString msgDlg = msg; wxString msgDlg = msg;
#if wxUSE_STACKWALKER #if wxUSE_STACKWALKER
@@ -523,7 +523,6 @@ bool wxGUIAppTraitsBase::ShowAssertDialog(const wxString& msg)
//case wxNO: nothing to do //case wxNO: nothing to do
} }
#endif // !wxUSE_MSGDLG/wxUSE_MSGDLG
#else // !wxDEBUG_LEVEL #else // !wxDEBUG_LEVEL
// this function always exists (for ABI compatibility) but is never called // this function always exists (for ABI compatibility) but is never called
// if debug level is 0 and so can simply do nothing then // if debug level is 0 and so can simply do nothing then
@@ -531,6 +530,7 @@ bool wxGUIAppTraitsBase::ShowAssertDialog(const wxString& msg)
#endif // wxDEBUG_LEVEL/!wxDEBUG_LEVEL #endif // wxDEBUG_LEVEL/!wxDEBUG_LEVEL
return false; return false;
#endif // !wxUSE_MSGDLG/wxUSE_MSGDLG
} }
bool wxGUIAppTraitsBase::HasStderr() bool wxGUIAppTraitsBase::HasStderr()