mirror of https://github.com/Icinga/icinga2.git
Fixed compiler warnings.
This commit is contained in:
parent
659fcf8fa3
commit
97dd87ab96
|
@ -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);
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
using namespace icinga;
|
||||
|
||||
ScriptInterpreter::ScriptInterpreter(const Script::Ptr& script)
|
||||
ScriptInterpreter::ScriptInterpreter(const Script::Ptr&)
|
||||
{ }
|
||||
|
||||
ScriptInterpreter::~ScriptInterpreter(void)
|
||||
|
|
Loading…
Reference in New Issue