mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Fixed compiler warnings.
This commit is contained in:
parent
22dabfc60d
commit
d4c6824056
@ -82,7 +82,9 @@ Application::Ptr Application::GetInstance(void)
|
|||||||
*/
|
*/
|
||||||
void Application::RunEventLoop(void)
|
void Application::RunEventLoop(void)
|
||||||
{
|
{
|
||||||
|
#ifdef _DEBUG
|
||||||
double nextProfile = 0;
|
double nextProfile = 0;
|
||||||
|
#endif /* _DEBUG */
|
||||||
|
|
||||||
while (!m_ShuttingDown) {
|
while (!m_ShuttingDown) {
|
||||||
Object::ClearHeldObjects();
|
Object::ClearHeldObjects();
|
||||||
@ -148,7 +150,7 @@ String Application::GetExePath(void) const
|
|||||||
executablePath = argv0;
|
executablePath = argv0;
|
||||||
|
|
||||||
bool foundSlash = false;
|
bool foundSlash = false;
|
||||||
for (int i = 0; i < argv0.GetLength(); i++) {
|
for (size_t i = 0; i < argv0.GetLength(); i++) {
|
||||||
if (argv0[i] == '/') {
|
if (argv0[i] == '/') {
|
||||||
foundSlash = true;
|
foundSlash = true;
|
||||||
break;
|
break;
|
||||||
|
@ -199,6 +199,8 @@ bool Process::RunTask(void)
|
|||||||
outputbuf << "Process was terminated by signal " << WTERMSIG(status);
|
outputbuf << "Process was terminated by signal " << WTERMSIG(status);
|
||||||
output = outputbuf.str();
|
output = outputbuf.str();
|
||||||
exitcode = 128;
|
exitcode = 128;
|
||||||
|
} else {
|
||||||
|
exitcode = 128;
|
||||||
}
|
}
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
|
@ -10,8 +10,6 @@ using namespace icinga;
|
|||||||
*/
|
*/
|
||||||
void SyslogLogger::ProcessLogEntry(const LogEntry& entry)
|
void SyslogLogger::ProcessLogEntry(const LogEntry& entry)
|
||||||
{
|
{
|
||||||
char timestamp[100];
|
|
||||||
|
|
||||||
int severity;
|
int severity;
|
||||||
switch (entry.Severity) {
|
switch (entry.Severity) {
|
||||||
case LogDebug:
|
case LogDebug:
|
||||||
|
@ -112,13 +112,9 @@ shared_ptr<X509> TlsClient::GetPeerCertificate(void) const
|
|||||||
*/
|
*/
|
||||||
void TlsClient::HandleReadable(void)
|
void TlsClient::HandleReadable(void)
|
||||||
{
|
{
|
||||||
int result;
|
|
||||||
|
|
||||||
m_BlockRead = false;
|
m_BlockRead = false;
|
||||||
m_BlockWrite = false;
|
m_BlockWrite = false;
|
||||||
|
|
||||||
result = 0;
|
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
char data[1024];
|
char data[1024];
|
||||||
int rc;
|
int rc;
|
||||||
|
@ -95,7 +95,6 @@ void DelegationComponent::DelegationTimerHandler(void)
|
|||||||
|
|
||||||
std::random_shuffle(services.begin(), services.end());
|
std::random_shuffle(services.begin(), services.end());
|
||||||
|
|
||||||
bool need_clear = false;
|
|
||||||
int delegated = 0;
|
int delegated = 0;
|
||||||
|
|
||||||
/* re-assign services */
|
/* re-assign services */
|
||||||
@ -135,7 +134,6 @@ void DelegationComponent::DelegationTimerHandler(void)
|
|||||||
|
|
||||||
/* clear the service's current checker */
|
/* clear the service's current checker */
|
||||||
if (!checker.IsEmpty()) {
|
if (!checker.IsEmpty()) {
|
||||||
need_clear = true;
|
|
||||||
service->SetChecker("");
|
service->SetChecker("");
|
||||||
|
|
||||||
if (oldEndpoint)
|
if (oldEndpoint)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user