summaryrefslogtreecommitdiff
path: root/src/third_party
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-02-22 18:27:24 -0500
committerMathias Stearn <mathias@10gen.com>2017-02-28 11:58:12 -0500
commit87835611622ec35171506f254bfb24a560c8b741 (patch)
treea834eecad42068556c50115da7523ee205cbebf9 /src/third_party
parent2128f3a19f31ad31d97cb1ffec9a9320d641ff7c (diff)
downloadmongo-87835611622ec35171506f254bfb24a560c8b741.tar.gz
SERVER-27956 fix gcc6 compile warning
This is a more minimal version of https://github.com/boostorg/function/commit/bde64bf9ebe7a05e7c56505ea33133bde0ccbad0 and https://github.com/boostorg/function/commit/54988e8e91ac0272f9364ae1818f519621b18317 that will tide us over until we can upgrade to a newer version of boost.
Diffstat (limited to 'src/third_party')
-rw-r--r--src/third_party/boost-1.60.0/boost/function/function_base.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/third_party/boost-1.60.0/boost/function/function_base.hpp b/src/third_party/boost-1.60.0/boost/function/function_base.hpp
index 35c1995ecee..f985fef0356 100644
--- a/src/third_party/boost-1.60.0/boost/function/function_base.hpp
+++ b/src/third_party/boost-1.60.0/boost/function/function_base.hpp
@@ -121,7 +121,9 @@ namespace boost {
} obj_ref;
// To relax aliasing constraints
- mutable char data;
+ mutable char data[sizeof(bound_memfunc_ptr_t)];
+ static_assert(sizeof(bound_memfunc_ptr_t) >= sizeof(obj_ref_t),
+ "sizeof(bound_memfunc_ptr_t) >= sizeof(obj_ref_t)");
};
/**