From 0f0ce4e5ec66d7661fac57c1ab6aa4cd71d7e2c3 Mon Sep 17 00:00:00 2001 From: Yancey Date: Sun, 28 Jan 2018 10:30:44 +0800 Subject: [PATCH] Fix cpplint (#7914) --- paddle/operators/detail/grpc_client.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/operators/detail/grpc_client.cc b/paddle/operators/detail/grpc_client.cc index 90e2b2965..c43394554 100644 --- a/paddle/operators/detail/grpc_client.cc +++ b/paddle/operators/detail/grpc_client.cc @@ -101,8 +101,8 @@ bool RPCClient::Wait() { if (req_count_ <= 0) { return true; } - - bool a[req_count_]; + const size_t kReqCnt = req_count_; + bool a[kReqCnt]; std::vector> waits(req_count_); for (int i = 0; i < req_count_; i++) { -- GitLab