From 35ddd011f902e22790d1672cf9c1b668cccc7f3e Mon Sep 17 00:00:00 2001 From: panda-sheep <59197347+panda-sheep@users.noreply.github.com> Date: Mon, 13 Dec 2021 18:39:58 +0800 Subject: [PATCH] fix unused varaible (#3455) Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> --- src/graph/validator/GoValidator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graph/validator/GoValidator.cpp b/src/graph/validator/GoValidator.cpp index 03da2cede0d..2f2bb84fa3d 100644 --- a/src/graph/validator/GoValidator.cpp +++ b/src/graph/validator/GoValidator.cpp @@ -43,8 +43,8 @@ Status GoValidator::validateImpl() { } auto varPropsMap = exprProps.varProps(); std::vector keys; - for (const auto& [k, v] : varPropsMap) { - keys.emplace_back(k); + for (const auto& elem : varPropsMap) { + keys.emplace_back(elem.first); } if (keys.size() > 1) { return Status::SemanticError("Multiple variable property is not supported in WHERE or YIELD");