[icinga-checkins] icinga.org: icinga2/master: Fixed some more compiler warnings.

git at icinga.org git at icinga.org
Thu Mar 7 09:48:18 CET 2013


Module: icinga2
Branch: master
Commit: d2a27eb52134c2026471594778104456e0f2de20
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=d2a27eb52134c2026471594778104456e0f2de20

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Mar  7 09:47:51 2013 +0100

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 c908c5d..4f18ba4 100644
--- a/lib/icinga/externalcommandprocessor.cpp
+++ b/lib/icinga/externalcommandprocessor.cpp
@@ -1101,7 +1101,7 @@ void ExternalCommandProcessor::DelAllSvcComments(double, const vector<String>& a
 	service->RemoveAllComments();
 }
 
-void ExternalCommandProcessor::SendCustomHostNotification(double time, const vector<String>& arguments)
+void ExternalCommandProcessor::SendCustomHostNotification(double, const vector<String>& 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<String>& arguments)
+void ExternalCommandProcessor::SendCustomSvcNotification(double, const vector<String>& 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<String>& arguments)
+void ExternalCommandProcessor::DelayHostNotification(double, const vector<String>& arguments)
 {
 	if (arguments.size() < 2)
 		BOOST_THROW_EXCEPTION(invalid_argument("Expected 2 arguments."));
@@ -1144,7 +1144,7 @@ void ExternalCommandProcessor::DelayHostNotification(double time, const vector<S
 	}
 }
 
-void ExternalCommandProcessor::DelaySvcNotification(double time, const vector<String>& arguments)
+void ExternalCommandProcessor::DelaySvcNotification(double, const vector<String>& 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 ba7f0c9..2bf26e9 100644
--- a/lib/remoting/endpoint.cpp
+++ b/lib/remoting/endpoint.cpp
@@ -222,7 +222,7 @@ void Endpoint::RegisterTopicHandler(const String& topic, const function<Endpoint
 	RegisterSubscription(topic);
 }
 
-void Endpoint::UnregisterTopicHandler(const String& topic, const function<Endpoint::Callback>& callback)
+void Endpoint::UnregisterTopicHandler(const String&, const function<Endpoint::Callback>&)
 {
 	// TODO: implement
 	//m_TopicHandlers[method] -= callback;





More information about the icinga-checkins mailing list