This is an automated email from the ASF dual-hosted git repository.
asekretenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new 77d1c7e Fixed compilation failure due to -Wmissing-braces.
77d1c7e is described below
commit 77d1c7e1067272330d489868a493430439488e4b
Author: Andrei Sekretenko <[email protected]>
AuthorDate: Fri Sep 25 21:52:24 2020 +0200
Fixed compilation failure due to -Wmissing-braces.
This fixes compilation failure on some versions of clang/gcc
introduced in 28ff20d4990ec2097852a5cd16966628d89c31d3 caused by
missing braces in the `OfferConstraintsFilter()` constructor code.
---
src/master/allocator/mesos/offer_constraints_filter.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/master/allocator/mesos/offer_constraints_filter.cpp
b/src/master/allocator/mesos/offer_constraints_filter.cpp
index 45199ca..05cb0f2 100644
--- a/src/master/allocator/mesos/offer_constraints_filter.cpp
+++ b/src/master/allocator/mesos/offer_constraints_filter.cpp
@@ -474,7 +474,7 @@ OfferConstraintsFilter::OfferConstraintsFilter(
OfferConstraintsFilter::OfferConstraintsFilter()
: OfferConstraintsFilter(
- CHECK_NOTERROR(OfferConstraintsFilterImpl::create({Bytes(0), 0}, {})))
+ CHECK_NOTERROR(OfferConstraintsFilterImpl::create({{Bytes(0), 0}},
{})))
{}