diff options
author | Haibo Huang <hhb@google.com> | 2021-03-03 16:41:39 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2021-03-03 16:43:48 -0800 |
commit | 1c9baa3191fadacdcd89ac7837a0acdeb63b2c5f (patch) | |
tree | d0a7c70e0ae21afe2e3b0b5a4382e60c2c02af69 /tools/bit | |
parent | 48054e5cf49464c8e61faadce1be6797f8f40b5b (diff) |
Remove unused errorMessage
Change-Id: If799737a69545bf6789213ce3f4dd6c724352213
Diffstat (limited to 'tools/bit')
-rw-r--r-- | tools/bit/make.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<string,Module>* 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; } |