diff --git a/lib/base/process-unix.cpp b/lib/base/process-unix.cpp index 2522550e7..6ccb8d693 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 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 edb6b7adf..235c9fac7 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)