Skip to content

Commit f4a73f6

Browse files
committed
Silence unused variable warning in example validation during JSON parsing
1 parent 3e5fde9 commit f4a73f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

agent_sdks/cpp/src/schema/catalog.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ std::string A2uiCatalog::load_examples(const std::string& path, bool validate) c
146146

147147
void A2uiCatalog::validate_example(const std::string& full_path, const std::string& content) const {
148148
try {
149-
nlohmann::json::parse(content);
149+
auto parsed = nlohmann::json::parse(content);
150+
(void)parsed;
150151
} catch (const std::exception& e) {
151152
throw std::runtime_error("Failed to parse example " + full_path + ": " + e.what());
152153
}

0 commit comments

Comments
 (0)