Suppress harmless gcc warnings about enum elements unhandled in switch.
Latest mingw64 MinGW compiler has the headers required for enabling wxUSE_DBGHELP, fix the warnings given by g++ when compiling wxDbgHelpDLL code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -359,6 +359,10 @@ wxDbgHelpDLL::DumpField(PSYMBOL_INFO pSym, void *pVariable, unsigned level)
|
|||||||
case SYMBOL_TAG_BASE_CLASS:
|
case SYMBOL_TAG_BASE_CLASS:
|
||||||
s = DumpUDT(&sym, pVariable, level);
|
s = DumpUDT(&sym, pVariable, level);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
// Suppress gcc warnings about unhandled enum values.
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -367,6 +371,11 @@ wxDbgHelpDLL::DumpField(PSYMBOL_INFO pSym, void *pVariable, unsigned level)
|
|||||||
s = GetSymbolName(pSym) + wxT(" = ") + s;
|
s = GetSymbolName(pSym) + wxT(" = ") + s;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
// Suppress gcc warnings about unhandled enum values, don't assert
|
||||||
|
// to avoid problems during fatal crash generation.
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !s.empty() )
|
if ( !s.empty() )
|
||||||
@@ -520,6 +529,11 @@ wxDbgHelpDLL::DumpSymbol(PSYMBOL_INFO pSym, void *pVariable)
|
|||||||
SYMBOL_INFO symDeref = *pSym;
|
SYMBOL_INFO symDeref = *pSym;
|
||||||
switch ( DereferenceSymbol(&symDeref, &pVariable) )
|
switch ( DereferenceSymbol(&symDeref, &pVariable) )
|
||||||
{
|
{
|
||||||
|
default:
|
||||||
|
// Suppress gcc warnings about unhandled enum values, don't assert
|
||||||
|
// to avoid problems during fatal crash generation.
|
||||||
|
break;
|
||||||
|
|
||||||
case SYMBOL_TAG_UDT:
|
case SYMBOL_TAG_UDT:
|
||||||
// show UDT recursively
|
// show UDT recursively
|
||||||
s = DumpUDT(&symDeref, pVariable);
|
s = DumpUDT(&symDeref, pVariable);
|
||||||
|
Reference in New Issue
Block a user