Add suppressions for PVS-Studio

This commit is contained in:
Alexey Milovidov 2021-05-08 17:09:40 +03:00
parent 78a2df5900
commit 7ca0f46708
2 changed files with 4 additions and 4 deletions

View File

@ -120,8 +120,8 @@ public:
state_created = false;
}
agg_func.create(place.data());
state_created = true;
agg_func.create(place.data()); /// This function can throw.
state_created = true; //-V519
}
agg_func.merge(place.data(), state_to_add, arena.get());

View File

@ -327,7 +327,7 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
FormatStateStacked frame_nested = frame;
columns_list->formatImpl(settings, state, frame_nested);
settings.ostr << (settings.one_line ? ")" : "\n)");
frame.expression_list_always_start_on_new_line = false;
frame.expression_list_always_start_on_new_line = false; //-V519
}
settings.ostr << (settings.hilite ? hilite_keyword : "") << " AS " << (settings.hilite ? hilite_none : "");
@ -355,7 +355,7 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
settings.ostr << (settings.one_line ? ")" : "\n)");
}
frame.expression_list_always_start_on_new_line = false;
frame.expression_list_always_start_on_new_line = false; //-V519
if (storage)
storage->formatImpl(settings, state, frame);