From 9444c65ee8a3461a3cdc4434794fea438eaae087 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 18 Feb 2018 20:31:35 -0800 Subject: [PATCH] Remove an unused variable from expand_cmdsubst --- src/expand.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/expand.cpp b/src/expand.cpp index e703eea08..194b4b941 100644 --- a/src/expand.cpp +++ b/src/expand.cpp @@ -1028,8 +1028,7 @@ static bool expand_cmdsubst(const wcstring &input, std::vector *ou const wchar_t *const in = input.c_str(); - int parse_ret; - switch (parse_ret = parse_util_locate_cmdsubst(in, &paren_begin, &paren_end, false)) { + switch (parse_util_locate_cmdsubst(in, &paren_begin, &paren_end, false)) { case -1: { append_syntax_error(errors, SOURCE_LOCATION_UNKNOWN, L"Mismatched parenthesis"); return false;