From 047b3e55465c4f92564b9365282d925b8e1ccc83 Mon Sep 17 00:00:00 2001 From: lijunru Date: Mon, 9 Jun 2025 15:06:18 +0800 Subject: [PATCH] Fix might be unused parameter Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICDOG3 Signed-off-by: lijunru --- ets2panda/lsp/src/isolated_declaration.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ets2panda/lsp/src/isolated_declaration.cpp b/ets2panda/lsp/src/isolated_declaration.cpp index 621b219c41..d4df74d45d 100644 --- a/ets2panda/lsp/src/isolated_declaration.cpp +++ b/ets2panda/lsp/src/isolated_declaration.cpp @@ -49,7 +49,8 @@ std::optional GenUnionType(const checker::ETSUnionType *unionType, const char splitChar); template -std::vector FilterUnionTypes(const ArenaVector &originTypes, checker::ETSChecker *checker) +std::vector FilterUnionTypes(const ArenaVector &originTypes, + [[maybe_unused]] checker::ETSChecker *checker) { if (originTypes.empty()) { return {}; -- Gitee