Skip to content

Commit fb1ac46

Browse files
Disable warnings about void-dereference on Clang
1 parent e3575fa commit fb1ac46

File tree

1 file changed

+3
-0
lines changed
  • src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/stdx

1 file changed

+3
-0
lines changed

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/stdx/iterator.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ using to_address_t = decltype(to_address(std::declval<T&>()));
6666
/**
6767
* @brief The result of applying unary operator* to the given object, if valid
6868
*/
69+
bsoncxx_push_warnings();
70+
bsoncxx_disable_warning(Clang("-Wvoid-ptr-dereference"));
6971
template <typename I>
7072
using dereference_t = decltype(*std::declval<I>());
73+
bsoncxx_pop_warnings();
7174

7275
/**
7376
* @brief Detect a type that can be dereferenced (like a pointer) and the result

0 commit comments

Comments
 (0)