This is an automated email from the ASF dual-hosted git repository.
mmarshall pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.10 by this push:
new 6dc733b [C++ Client] Add braces around initialization of subobject
(#14735)
6dc733b is described below
commit 6dc733b9b7ed88f04ea6a8e06421bdbb39ed38ba
Author: Michael Marshall <[email protected]>
AuthorDate: Thu Mar 17 16:34:38 2022 -0500
[C++ Client] Add braces around initialization of subobject (#14735)
(cherry picked from commit 3ff05b2c5084c73016dceeaee1235b4dbb837f6f)
---
pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc
b/pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc
index 811c0e1..e6f0221 100644
--- a/pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc
+++ b/pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc
@@ -26,7 +26,7 @@
namespace pulsar {
DECLARE_LOG_OBJECT();
-static const std::array<double, 4> probs = {0.5, 0.9, 0.99, 0.999};
+static const std::array<double, 4> probs = {{0.5, 0.9, 0.99, 0.999}};
std::string ProducerStatsImpl::latencyToString(const LatencyAccumulator& obj) {
boost::accumulators::detail::extractor_result<