mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
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) {
|
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);
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user