Skip to content

Commit 18c8967

Browse files
committed
Ignore compiler warning
1 parent 70a9dcb commit 18c8967

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/morton/compressed_cuckoo_filter.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,17 @@ namespace CompressedCuckoo{
455455
// Currently set to false because clear_swath hasn't been rigorously tested
456456
constexpr bool _only_clear_ota_and_fca = false;
457457
if(!_only_clear_ota_and_fca){ // Competitive with the code in the loop below
458+
459+
// from https://phabricator.kde.org/D13900
460+
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (((__GNUC__ * 100) + __GNUC_MINOR__) >= 800)
461+
#pragma GCC diagnostic push
462+
#pragma GCC diagnostic ignored "-Wclass-memaccess"
463+
#endif
458464
memset(storage, 0x0, allocation_size);
465+
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (((__GNUC__ * 100) + __GNUC_MINOR__) >= 800)
466+
#pragma GCC diagnostic pop
467+
#endif
468+
459469
return storage;
460470
} // ELSE
461471
for(hash_t i = 0; i < total_blocks; i++){

0 commit comments

Comments
 (0)