Fixed compiler warnings.

This commit is contained in:
Gunnar Beutner 2013-03-07 08:14:55 +01:00
parent 659fcf8fa3
commit 97dd87ab96
2 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ void Process::WorkerThreadProc(int taskFd)
if (pfds[i].fd == taskFd) { if (pfds[i].fd == taskFd) {
vector<Process::Ptr> new_tasks; vector<Process::Ptr> new_tasks;
int want = MaxTasksPerThread - tasks.size(); unsigned int want = MaxTasksPerThread - tasks.size();
if (want > m_Tasks.size()) if (want > m_Tasks.size())
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. */ /* Read one byte for every task we take from the pending tasks list. */
char buffer[MaxTasksPerThread]; char buffer[MaxTasksPerThread];
assert(want =< sizeof(buffer)); assert(want <= sizeof(buffer));
int have = read(taskFd, &buffer, want); int have = read(taskFd, &buffer, want);

View File

@ -21,7 +21,7 @@
using namespace icinga; using namespace icinga;
ScriptInterpreter::ScriptInterpreter(const Script::Ptr& script) ScriptInterpreter::ScriptInterpreter(const Script::Ptr&)
{ } { }
ScriptInterpreter::~ScriptInterpreter(void) ScriptInterpreter::~ScriptInterpreter(void)