Fix some GCC warnings

This was SVN commit r7048.
This commit is contained in:
Ykkrosh
2009-07-28 16:59:19 +00:00
parent 4ee7e26776
commit 008d894dd7
20 changed files with 39 additions and 29 deletions
+2 -1
View File
@@ -291,7 +291,8 @@ void CInternalCGUIAccessorBase::HandleMessage(IGUIObject *pObject, const SGUIMes
#ifndef NDEBUG
#define TYPE(T) \
template<> void CheckType<T>(const IGUIObject* obj, const CStr& setting) { \
if (((IGUIObject*)obj)->m_Settings[setting].m_Type != GUIST_##T) \
std::map<CStr, SGUISetting>::const_iterator it = obj->m_Settings.find(setting); \
if (it == obj->m_Settings.end() || it->second.m_Type != GUIST_##T) \
{ \
/* Abort now, to avoid corrupting everything by invalidly \
casting pointers */ \