mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
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)
|
else if (m_ScopeSpec == ScopeGlobal)
|
||||||
return ScriptGlobal::GetGlobals();
|
return ScriptGlobal::GetGlobals();
|
||||||
else
|
else
|
||||||
ASSERT(!"Invalid scope.");
|
VERIFY(!"Invalid scope.");
|
||||||
}
|
}
|
||||||
|
|
||||||
ExpressionResult SetExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhint) const
|
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;
|
qbuf << "DELETE FROM " << GetTablePrefix() << query.Table;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ASSERT(!"Invalid query type.");
|
VERIFY(!"Invalid query type.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
||||||
|
@ -638,7 +638,7 @@ void IdoPgsqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
|||||||
else if (query.StatusUpdate)
|
else if (query.StatusUpdate)
|
||||||
hasid = GetStatusUpdate(query.Object);
|
hasid = GetStatusUpdate(query.Object);
|
||||||
else
|
else
|
||||||
ASSERT(!"Invalid query flags.");
|
VERIFY(!"Invalid query flags.");
|
||||||
|
|
||||||
if (!hasid)
|
if (!hasid)
|
||||||
upsert = true;
|
upsert = true;
|
||||||
@ -657,7 +657,7 @@ void IdoPgsqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
|||||||
qbuf << "DELETE FROM " << GetTablePrefix() << query.Table;
|
qbuf << "DELETE FROM " << GetTablePrefix() << query.Table;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ASSERT(!"Invalid query type.");
|
VERIFY(!"Invalid query type.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user