[icinga-checkins] icinga.org: icinga2/master: Fixed compiler warnings.
git at icinga.org
git at icinga.org
Thu Mar 7 08:15:06 CET 2013
Module: icinga2
Branch: master
Commit: 97dd87ab9678b003cf96de02e6c56251998d7f9c
URL: https://git.icinga.org/?p=icinga2.git;a=commit;h=97dd87ab9678b003cf96de02e6c56251998d7f9c
Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date: Thu Mar 7 08:14:55 2013 +0100
Fixed compiler warnings.
---
lib/base/process-unix.cpp | 4 ++--
lib/base/scriptinterpreter.cpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/base/process-unix.cpp b/lib/base/process-unix.cpp
index 2522550..6ccb8d6 100644
--- a/lib/base/process-unix.cpp
+++ b/lib/base/process-unix.cpp
@@ -117,7 +117,7 @@ void Process::WorkerThreadProc(int taskFd)
if (pfds[i].fd == taskFd) {
vector<Process::Ptr> new_tasks;
- int want = MaxTasksPerThread - tasks.size();
+ unsigned int want = MaxTasksPerThread - tasks.size();
if (want > m_Tasks.size())
want = m_Tasks.size();
@@ -128,7 +128,7 @@ void Process::WorkerThreadProc(int taskFd)
/* Read one byte for every task we take from the pending tasks list. */
char buffer[MaxTasksPerThread];
- assert(want =< sizeof(buffer));
+ assert(want <= sizeof(buffer));
int have = read(taskFd, &buffer, want);
diff --git a/lib/base/scriptinterpreter.cpp b/lib/base/scriptinterpreter.cpp
index edb6b7a..235c9fa 100644
--- a/lib/base/scriptinterpreter.cpp
+++ b/lib/base/scriptinterpreter.cpp
@@ -21,7 +21,7 @@
using namespace icinga;
-ScriptInterpreter::ScriptInterpreter(const Script::Ptr& script)
+ScriptInterpreter::ScriptInterpreter(const Script::Ptr&)
{ }
ScriptInterpreter::~ScriptInterpreter(void)
More information about the icinga-checkins
mailing list