Skip to content

Commit ab94c30

Browse files
committed
Fix C++ warnings
1 parent 9bdc5dd commit ab94c30

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Performance/generators/cpp.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ using google::protobuf::util::BinaryToJsonString;
9898
using google::protobuf::util::JsonToBinaryString;
9999
using google::protobuf::util::MessageDifferencer;
100100
using google::protobuf::util::NewTypeResolverForDescriptorPool;
101-
using google::protobuf::util::Status;
102101
using google::protobuf::util::TypeResolver;
103102
using std::cerr;
104103
using std::endl;
@@ -148,12 +147,14 @@ void Harness::run() {
148147
// Exercise JSON serialization.
149148
auto json = measure_subtask("Encode JSON", [&]() {
150149
string out_json;
151-
BinaryToJsonString(type_resolver, *type_url, data, &out_json);
150+
auto r = BinaryToJsonString(type_resolver, *type_url, data, &out_json);
151+
(void)r; // UNUSED
152152
return out_json;
153153
});
154154
auto decoded_binary = measure_subtask("Decode JSON", [&]() {
155155
string out_binary;
156-
JsonToBinaryString(type_resolver, *type_url, json, &out_binary);
156+
auto r = JsonToBinaryString(type_resolver, *type_url, json, &out_binary);
157+
(void)r; // UNUSED
157158
return out_binary;
158159
});
159160

0 commit comments

Comments
 (0)