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/ext/hash_map | |
| 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/ext/hash_map')
| -rw-r--r-- | libcxx/include/ext/hash_map | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/include/ext/hash_map b/libcxx/include/ext/hash_map index 09beaa607d8..7478d741006 100644 --- a/libcxx/include/ext/hash_map +++ b/libcxx/include/ext/hash_map @@ -318,12 +318,13 @@ private: allocator_type& __na_; - __hash_map_node_destructor& operator=(const __hash_map_node_destructor&); - public: bool __first_constructed; bool __second_constructed; + __hash_map_node_destructor(__hash_map_node_destructor const&) = default; + __hash_map_node_destructor& operator=(const __hash_map_node_destructor&) = delete; + _LIBCPP_INLINE_VISIBILITY explicit __hash_map_node_destructor(allocator_type& __na) : __na_(__na), |

