Skip to content

Commit

Permalink
disable pragma ignoring which are disallowed by r cmd check
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed Sep 15, 2023
1 parent 72a1e5c commit 4ed99ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/parallel_hashmap/btree.h
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ namespace priv {

#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
//#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
// Getters/setter for the child at position i in the node.
btree_node *child(size_type i) const { return GetField<3>()[i]; }
Expand Down
2 changes: 1 addition & 1 deletion src/parallel_hashmap/phmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ inline bool IsEmptyOrDeleted(ctrl_t c) { return c < kSentinel; }
inline __m128i _mm_cmpgt_epi8_fixed(__m128i a, __m128i b) {
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverflow"
//#pragma GCC diagnostic ignored "-Woverflow"

if (std::is_unsigned<char>::value) {
const __m128i mask = _mm_set1_epi8(static_cast<char>(0x80));
Expand Down
2 changes: 1 addition & 1 deletion src/parallel_hashmap/phmap_bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ inline void UnalignedStore64(void *p, uint64_t v) { memcpy(p, &v, sizeof v); }

#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
//#pragma GCC diagnostic ignored "-Wpedantic"
#endif

#ifdef PHMAP_HAVE_INTRINSIC_INT128
Expand Down

0 comments on commit 4ed99ba

Please sign in to comment.