Skip to content

Commit 9cf4e52

Browse files
noobpwnftwmm304321141
authored andcommitted
Silence GCC warnings
1 parent 43cbf28 commit 9cf4e52

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

util/chash.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
#include <cmath>
1111
#include <type_traits>
1212

13+
#if defined(__GNUC__)
14+
#pragma GCC diagnostic push
15+
#pragma GCC diagnostic ignored "-Wpragmas"
16+
#pragma GCC diagnostic ignored "-Wclass-memaccess"
17+
#endif
1318

1419
namespace contiguous_hash_detail
1520
{
@@ -1468,3 +1473,7 @@ class contiguous_hash
14681473
}
14691474

14701475
};
1476+
1477+
#if defined(__GNUC__)
1478+
#pragma GCC diagnostic pop
1479+
#endif

0 commit comments

Comments
 (0)