From 2e1f86fd0c9911210b79e6ac346672441eef18c4 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 23 Oct 2007 21:00:35 +0000 Subject: All of insp now builds with -pedantic (theres some warnings to squash in modules, and in spanningtree, but its all 'unused parameter'). I suggest we actually go through and satisfy these unused parameter errors for two reasons: (1) it acts as a strong compiler hint leading to better optimization (2) it will give us a good clue of what parameters are NEVER used and should therefore be removed from use (like i just did with AddMode) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8323 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_services.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_services.cpp') diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp index 88a6b8fb9..07d10aad5 100644 --- a/src/modules/m_services.cpp +++ b/src/modules/m_services.cpp @@ -179,8 +179,8 @@ class ModuleServices : public Module m4 = new User_r(ServerInstance); m5 = new User_R(ServerInstance); - if (!ServerInstance->AddMode(m1, 'r') || !ServerInstance->AddMode(m2, 'R') || !ServerInstance->AddMode(m3, 'M') - || !ServerInstance->AddMode(m4, 'r') || !ServerInstance->AddMode(m5, 'R')) + if (!ServerInstance->AddMode(m1) || !ServerInstance->AddMode(m2) || !ServerInstance->AddMode(m3) + || !ServerInstance->AddMode(m4) || !ServerInstance->AddMode(m5)) { throw ModuleException("Could not add user and channel modes!"); } -- cgit v1.3.1-10-gc9f91