From d2a27eb52134c2026471594778104456e0f2de20 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 7 Mar 2013 09:47:51 +0100 Subject: [PATCH] Fixed some more compiler warnings. --- lib/icinga/externalcommandprocessor.cpp | 8 ++++---- lib/remoting/endpoint.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/icinga/externalcommandprocessor.cpp b/lib/icinga/externalcommandprocessor.cpp index c908c5ded..4f18ba4ec 100644 --- a/lib/icinga/externalcommandprocessor.cpp +++ b/lib/icinga/externalcommandprocessor.cpp @@ -1101,7 +1101,7 @@ void ExternalCommandProcessor::DelAllSvcComments(double, const vector& a service->RemoveAllComments(); } -void ExternalCommandProcessor::SendCustomHostNotification(double time, const vector& arguments) +void ExternalCommandProcessor::SendCustomHostNotification(double, const vector& arguments) { if (arguments.size() < 4) BOOST_THROW_EXCEPTION(invalid_argument("Expected 4 arguments.")); @@ -1114,7 +1114,7 @@ void ExternalCommandProcessor::SendCustomHostNotification(double time, const vec service->RequestNotifications(NotificationCustom); } -void ExternalCommandProcessor::SendCustomSvcNotification(double time, const vector& arguments) +void ExternalCommandProcessor::SendCustomSvcNotification(double, const vector& arguments) { if (arguments.size() < 5) BOOST_THROW_EXCEPTION(invalid_argument("Expected 5 arguments.")); @@ -1125,7 +1125,7 @@ void ExternalCommandProcessor::SendCustomSvcNotification(double time, const vect service->RequestNotifications(NotificationCustom); } -void ExternalCommandProcessor::DelayHostNotification(double time, const vector& arguments) +void ExternalCommandProcessor::DelayHostNotification(double, const vector& arguments) { if (arguments.size() < 2) BOOST_THROW_EXCEPTION(invalid_argument("Expected 2 arguments.")); @@ -1144,7 +1144,7 @@ void ExternalCommandProcessor::DelayHostNotification(double time, const vector& arguments) +void ExternalCommandProcessor::DelaySvcNotification(double, const vector& arguments) { if (arguments.size() < 3) BOOST_THROW_EXCEPTION(invalid_argument("Expected 3 arguments.")); diff --git a/lib/remoting/endpoint.cpp b/lib/remoting/endpoint.cpp index ba7f0c901..2bf26e951 100644 --- a/lib/remoting/endpoint.cpp +++ b/lib/remoting/endpoint.cpp @@ -222,7 +222,7 @@ void Endpoint::RegisterTopicHandler(const String& topic, const function& callback) +void Endpoint::UnregisterTopicHandler(const String&, const function&) { // TODO: implement //m_TopicHandlers[method] -= callback;