Fix compiler warnings on Windows.

This commit is contained in:
Gunnar Beutner 2013-03-12 18:53:44 +01:00
parent d15a21a0d2
commit c594ee7c30
3 changed files with 5 additions and 10 deletions

View File

@ -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);
}

View File

@ -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());

View File

@ -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;
}
}