dynamic casts are only used in debug builds

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3721 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2009-07-09 01:37:10 +00:00
parent ae33627515
commit d1e805ad78
2 changed files with 2 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ Widget::Widget()
// -----------------------------------------------------------------------------
template<typename T> T* Widget::getIrrlichtElement()
{
#ifdef __WIN32__
#if defined(__WIN32__) || defined(NDEBUG)
return static_cast<T*>(m_element);
#else
T* out = dynamic_cast<T*>(m_element);

View File

@@ -2395,6 +2395,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_DEBUGGING_SYMBOLS = full;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;