mirror of https://github.com/Icinga/icinga2.git
Fix some compile warnings
This commit is contained in:
parent
b4143c2724
commit
4d63351561
|
@ -463,7 +463,7 @@ ExpressionResult GetScopeExpression::DoEvaluate(ScriptFrame& frame, DebugHint *d
|
|||
else if (m_ScopeSpec == ScopeGlobal)
|
||||
return ScriptGlobal::GetGlobals();
|
||||
else
|
||||
ASSERT(!"Invalid scope.");
|
||||
VERIFY(!"Invalid scope.");
|
||||
}
|
||||
|
||||
ExpressionResult SetExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const
|
||||
|
|
|
@ -661,7 +661,7 @@ void IdoMysqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
|||
qbuf << "DELETE FROM " << GetTablePrefix() << query.Table;
|
||||
break;
|
||||
default:
|
||||
ASSERT(!"Invalid query type.");
|
||||
VERIFY(!"Invalid query type.");
|
||||
}
|
||||
|
||||
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
||||
|
|
|
@ -638,7 +638,7 @@ void IdoPgsqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
|||
else if (query.StatusUpdate)
|
||||
hasid = GetStatusUpdate(query.Object);
|
||||
else
|
||||
ASSERT(!"Invalid query flags.");
|
||||
VERIFY(!"Invalid query flags.");
|
||||
|
||||
if (!hasid)
|
||||
upsert = true;
|
||||
|
@ -657,7 +657,7 @@ void IdoPgsqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
|||
qbuf << "DELETE FROM " << GetTablePrefix() << query.Table;
|
||||
break;
|
||||
default:
|
||||
ASSERT(!"Invalid query type.");
|
||||
VERIFY(!"Invalid query type.");
|
||||
}
|
||||
|
||||
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
||||
|
|
Loading…
Reference in New Issue