From 7ca0f46708700a3d46e440d1d2eb03ac290a321b Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 8 May 2021 17:09:40 +0300 Subject: [PATCH] Add suppressions for PVS-Studio --- src/Functions/runningAccumulate.cpp | 4 ++-- src/Parsers/ASTCreateQuery.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Functions/runningAccumulate.cpp b/src/Functions/runningAccumulate.cpp index 7c1b1f7162e..0fe354e30c0 100644 --- a/src/Functions/runningAccumulate.cpp +++ b/src/Functions/runningAccumulate.cpp @@ -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()); diff --git a/src/Parsers/ASTCreateQuery.cpp b/src/Parsers/ASTCreateQuery.cpp index 1192fcc6ebd..d4c7312f437 100644 --- a/src/Parsers/ASTCreateQuery.cpp +++ b/src/Parsers/ASTCreateQuery.cpp @@ -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);