From 1c9baa3191fadacdcd89ac7837a0acdeb63b2c5f Mon Sep 17 00:00:00 2001 From: Haibo Huang Date: Wed, 3 Mar 2021 16:41:39 -0800 Subject: Remove unused errorMessage Change-Id: If799737a69545bf6789213ce3f4dd6c724352213 --- tools/bit/make.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/bit/make.cpp b/tools/bit/make.cpp index c39f49465054..2a88732b50b1 100644 --- a/tools/bit/make.cpp +++ b/tools/bit/make.cpp @@ -90,8 +90,7 @@ BuildVars::BuildVars(const string& outDir, const string& buildProduct, Json::Value json; Json::CharReaderBuilder builder; - std::string errorMessage; - if (!Json::parseFromStream(builder, stream, &json, &errorMessage)) { + if (!Json::parseFromStream(builder, stream, &json, /* errorMessage = */ nullptr)) { return; } @@ -215,8 +214,7 @@ read_modules(const string& buildOut, const string& device, map* r Json::Value json; Json::CharReaderBuilder builder; - std::string errorMessage; - if (!Json::parseFromStream(builder, stream, &json, &errorMessage)) { + if (!Json::parseFromStream(builder, stream, &json, /* errorMessage = */ nullptr)) { json_error(filename, "can't parse json format", quiet); return; } -- cgit v1.2.3