mirror of https://github.com/Icinga/icinga2.git
Fix compiler warnings on Windows.
This commit is contained in:
parent
d15a21a0d2
commit
c594ee7c30
|
@ -52,10 +52,8 @@ public:
|
|||
*/
|
||||
~AsyncTask(void)
|
||||
{
|
||||
if (!m_Finished)
|
||||
ASSERT(!"Contract violation: AsyncTask was destroyed before its completion callback was invoked.");
|
||||
else if (!m_ResultRetrieved)
|
||||
ASSERT(!"Contract violation: AsyncTask was destroyed before its result was retrieved.");
|
||||
ASSERT(m_Finished);
|
||||
ASSERT(m_ResultRetrieved);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -35,17 +35,16 @@ void SyslogLogger::ProcessLogEntry(const LogEntry& entry)
|
|||
case LogDebug:
|
||||
severity = LOG_DEBUG;
|
||||
break;
|
||||
case LogInformation:
|
||||
severity = LOG_INFO;
|
||||
break;
|
||||
case LogWarning:
|
||||
severity = LOG_WARNING;
|
||||
break;
|
||||
case LogCritical:
|
||||
severity = LOG_CRIT;
|
||||
break;
|
||||
case LogInformation:
|
||||
default:
|
||||
ASSERT(!"Invalid severity specified.");
|
||||
severity = LOG_INFO;
|
||||
break;
|
||||
}
|
||||
|
||||
syslog(severity | LOG_USER, "%s", entry.Message.CStr());
|
||||
|
|
|
@ -63,8 +63,6 @@ bool TypeRule::MatchValue(const Value& value) const
|
|||
return value.IsObjectType<Dictionary>();
|
||||
|
||||
default:
|
||||
ASSERT(!"Type rule has invalid type specifier.");
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue