From 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Apr 2021 23:42:15 +0100 Subject: Fix a ton of pedantic compiler warnings. --- src/modules.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 5ff3b8041..495d82930 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -209,19 +209,19 @@ void ModuleManager::Attach(Implementation* i, Module* mod, size_t sz) void ModuleManager::AttachAll(Module* mod) { for (size_t i = 0; i != I_END; ++i) - Attach((Implementation)i, mod); + Attach(static_cast(i), mod); } void ModuleManager::DetachAll(Module* mod) { for (size_t n = 0; n != I_END; ++n) - Detach((Implementation)n, mod); + Detach(static_cast(n), mod); } void ModuleManager::SetPriority(Module* mod, Priority s) { for (size_t n = 0; n != I_END; ++n) - SetPriority(mod, (Implementation)n, s); + SetPriority(mod, static_cast(n), s); } bool ModuleManager::SetPriority(Module* mod, Implementation i, Priority s, Module* which) @@ -608,7 +608,7 @@ void ModuleManager::DelService(ServiceProvider& item) case SERVICE_MODE: if (!ServerInstance->Modes.DelMode(static_cast(&item))) throw ModuleException("Mode "+std::string(item.name)+" does not exist."); - // Fall through + [[fallthrough]]; case SERVICE_DATA: case SERVICE_IOHOOK: { -- cgit v1.3.1-10-gc9f91