diff options
| author | Eric Fiselier <eric@efcs.ca> | 2019-12-12 20:48:11 -0500 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2019-12-12 21:09:08 -0500 |
| commit | f97936fabd263e3b311e3b8e9ffca4920e4fcff0 (patch) | |
| tree | 2c9de3065660c9a37f8e963b2380a19d3ca0d8b9 /libcxx/include/__tree | |
| parent | a8154e5e0c83d2f0f65f3b4fb1a0bc68785bd975 (diff) | |
| download | bcm5719-llvm-f97936fabd263e3b311e3b8e9ffca4920e4fcff0.tar.gz bcm5719-llvm-f97936fabd263e3b311e3b8e9ffca4920e4fcff0.zip | |
[libc++] Cleanup and enable multiple warnings.
Too many warnings are being disabled too quickly. Warnings are
important to keeping libc++ correct. This patch re-enables two
warnings: -Wconstant-evaluated and -Wdeprecated-copy.
In future, all warnings disabled for the test suite should require
an attached bug. The bug should state the plan for re-enabling that
warning, or a strong case why it should remain disabled.
Diffstat (limited to 'libcxx/include/__tree')
| -rw-r--r-- | libcxx/include/__tree | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/include/__tree b/libcxx/include/__tree index 8421299c9bc..8b6509cf91c 100644 --- a/libcxx/include/__tree +++ b/libcxx/include/__tree @@ -775,11 +775,14 @@ private: typedef __tree_node_types<pointer> _NodeTypes; allocator_type& __na_; - __tree_node_destructor& operator=(const __tree_node_destructor&); public: bool __value_constructed; + + __tree_node_destructor(const __tree_node_destructor &) = default; + __tree_node_destructor& operator=(const __tree_node_destructor&) = delete; + _LIBCPP_INLINE_VISIBILITY explicit __tree_node_destructor(allocator_type& __na, bool __val = false) _NOEXCEPT : __na_(__na), |

