From 38b22990eae47525f4e8064a29e585a89788ee58 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 22 Jan 2015 12:12:41 +0100 Subject: Disable typeid() calls unless INSPIRCD_ENABLE_RTTI is defined --- src/cull_list.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cull_list.cpp') diff --git a/src/cull_list.cpp b/src/cull_list.cpp index 5cbe3aef3..73f2def51 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -21,7 +21,9 @@ #include "inspircd.h" +#ifdef INSPIRCD_ENABLE_RTTI #include +#endif void CullList::Apply() { @@ -46,8 +48,12 @@ void CullList::Apply() classbase* c = list[i]; if (gone.insert(c).second) { +#ifdef INSPIRCD_ENABLE_RTTI ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "Deleting %s @%p", typeid(*c).name(), (void*)c); +#else + ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "Deleting @%p", (void*)c); +#endif c->cull(); queue.push_back(c); } -- cgit v1.3.1-10-gc9f91