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/__hash_table | |
| 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/__hash_table')
| -rw-r--r-- | libcxx/include/__hash_table | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libcxx/include/__hash_table b/libcxx/include/__hash_table index 0b953f58e99..7ba3cebd094 100644 --- a/libcxx/include/__hash_table +++ b/libcxx/include/__hash_table @@ -825,11 +825,13 @@ private: allocator_type& __na_; - __hash_node_destructor& operator=(const __hash_node_destructor&); - public: bool __value_constructed; + __hash_node_destructor(__hash_node_destructor const&) = default; + __hash_node_destructor& operator=(const __hash_node_destructor&) = delete; + + _LIBCPP_INLINE_VISIBILITY explicit __hash_node_destructor(allocator_type& __na, bool __constructed = false) _NOEXCEPT |

