File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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++){
You can’t perform that action at this time.
0 commit comments