From efabcce51e05412e71c07fe26ab6ad80454c3b7f Mon Sep 17 00:00:00 2001 From: oh-rgx Date: Wed, 4 Jun 2025 15:43:33 +0800 Subject: [PATCH] fix no error Signed-off-by: oh-rgx --- ets2panda/util/diagnosticEngine.cpp | 8 ++++---- ets2panda/util/diagnosticEngine.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ets2panda/util/diagnosticEngine.cpp b/ets2panda/util/diagnosticEngine.cpp index 9660f1f160..14eff5c79f 100644 --- a/ets2panda/util/diagnosticEngine.cpp +++ b/ets2panda/util/diagnosticEngine.cpp @@ -61,9 +61,9 @@ DiagnosticStorage DiagnosticEngine::GetAllDiagnostic() void DiagnosticEngine::FlushDiagnostic() { - if (isFlushed_) { - return; - } + // if (isFlushed_) { + // return; + // } auto log = GetAllDiagnostic(); std::sort(log.begin(), log.end(), [](const auto &lhs, const auto &rhs) { return *lhs < *rhs; }); auto last = @@ -71,7 +71,7 @@ void DiagnosticEngine::FlushDiagnostic() for (auto it = log.begin(); it != last; it++) { printer_->Print(**it); } - isFlushed_ = true; + // isFlushed_ = true; } #ifndef FUZZING_EXIT_ON_FAILED_ASSERT static void SigSegvHandler([[maybe_unused]] int sig) diff --git a/ets2panda/util/diagnosticEngine.h b/ets2panda/util/diagnosticEngine.h index a013fc7a71..7f1bb91aa1 100644 --- a/ets2panda/util/diagnosticEngine.h +++ b/ets2panda/util/diagnosticEngine.h @@ -172,7 +172,7 @@ private: std::array(DiagnosticType::COUNT)> diagnostics_; std::unique_ptr printer_; bool wError_ {false}; - bool isFlushed_ {false}; + // bool isFlushed_ {false}; }; } // namespace ark::es2panda::util -- Gitee