diff options
| author | 2021-04-04 23:42:15 +0100 | |
|---|---|---|
| committer | 2021-04-04 23:42:15 +0100 | |
| commit | 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch) | |
| tree | f5a81d03f572392e7547d58f979fdd488de6ff0b /src/cull.cpp | |
| parent | Remove the unused ExitCodes array. (diff) | |
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'src/cull.cpp')
| -rw-r--r-- | src/cull.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cull.cpp b/src/cull.cpp index ed4b06c09..9a6665a29 100644 --- a/src/cull.cpp +++ b/src/cull.cpp @@ -35,7 +35,7 @@ Cullable::Cullable() if (ServerInstance) { ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Cullable::+%s @%p", - typeid(*this).name(), (void*)this); + typeid(*this).name(), static_cast<void*>(this)); } #endif } @@ -46,7 +46,7 @@ Cullable::~Cullable() if (ServerInstance) { ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Cullable::~%s @%p", - typeid(*this).name(), (void*)this); + typeid(*this).name(), static_cast<void*>(this)); } #endif } @@ -57,7 +57,7 @@ Cullable::Result Cullable::Cull() if (ServerInstance) { ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Cullable::-%s @%p", - typeid(*this).name(), (void*)this); + typeid(*this).name(), static_cast<void*>(this)); } #endif return Result(); @@ -88,9 +88,9 @@ void CullList::Apply() { #ifdef INSPIRCD_ENABLE_RTTI ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Deleting %s @%p", typeid(*c).name(), - (void*)c); + static_cast<void*>(c)); #else - ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Deleting @%p", (void*)c); + ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Deleting @%p", static_cast<void*>(c)); #endif c->Cull(); queue.push_back(c); @@ -98,7 +98,7 @@ void CullList::Apply() else { ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "WARNING: Object @%p culled twice!", - (void*)c); + static_cast<void*>(c)); } } list.clear(); |
