Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions immer/detail/hamts/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@

// Disable some warnings for this file as it seems to be causing various
// false positives when compiling with various versions of GCC.
#if !defined(_MSC_VER)
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
#endif

namespace immer {
namespace detail {
Expand Down Expand Up @@ -1159,4 +1163,8 @@ struct node
} // namespace detail
} // namespace immer

#if !defined(_MSC_VER)
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
#endif
8 changes: 8 additions & 0 deletions immer/detail/rbts/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@

// Disable some warnings for this file as it seems to be causing various
// false positives when compiling with various versions of GCC.
#if !defined(_MSC_VER)
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#pragma GCC diagnostic ignored "-Wnonnull"
#endif
#endif

namespace immer {
namespace detail {
Expand Down Expand Up @@ -1039,4 +1043,8 @@ constexpr bits_t derive_bits_leaf = derive_bits_leaf_aux<T, MP, B>();
} // namespace detail
} // namespace immer

#if !defined(_MSC_VER)
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
#endif
Loading