From 4513cac55ff2c62074d766b9cac8f66136d00780 Mon Sep 17 00:00:00 2001 From: Anna Rift Date: Fri, 24 May 2024 12:35:21 -0700 Subject: [PATCH] std::ignore unneeded output Signed-off-by: Anna Rift --- frontend/lib/parsing/parsing-queries.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/lib/parsing/parsing-queries.cpp b/frontend/lib/parsing/parsing-queries.cpp index 40ee7b01de00..feb712a919d8 100644 --- a/frontend/lib/parsing/parsing-queries.cpp +++ b/frontend/lib/parsing/parsing-queries.cpp @@ -938,7 +938,7 @@ static const AstNode* const& astForIdQuery(Context* context, ID id) { // If looking up the ID of a bundled type, ensure the module defining it is // parsed first. if (types::CompositeType::isBundledType(id)) { - parsing::getToplevelModule( + std::ignore = parsing::getToplevelModule( context, ID::expandSymbolPath(context, id.symbolPath())[0].first); } @@ -973,7 +973,8 @@ static const AstTag& idToTagQuery(Context* context, ID id) { if (ast != nullptr) { result = ast->tag(); } else { - (void)types::CompositeType::isMissingBundledType(context, id, &result); + std::ignore = + types::CompositeType::isMissingBundledType(context, id, &result); } }