diff --git a/dbms/src/IO/Compression/CompressionCodecFactory.cpp b/dbms/src/IO/Compression/CompressionCodecFactory.cpp index 718870659b3..e67fbd36887 100644 --- a/dbms/src/IO/Compression/CompressionCodecFactory.cpp +++ b/dbms/src/IO/Compression/CompressionCodecFactory.cpp @@ -93,7 +93,7 @@ CompressionCodecPtr CompressionCodecFactory::getStaticCodec if (lz4_map.size() >= MAX_LZ4_MAP_SIZE) lz4_map.clear(); auto [it, inserted] = lz4_map.emplace(setting.level, std::make_shared(setting.level)); - assert(inserted); + UNUSED(inserted); return it->second; } @@ -113,7 +113,7 @@ CompressionCodecPtr CompressionCodecFactory::getStaticCodec= MAX_LZ4HC_MAP_SIZE) lz4hc_map.clear(); auto [it, inserted] = lz4hc_map.emplace(setting.level, std::make_shared(setting.level)); - assert(inserted); + UNUSED(inserted); return it->second; } @@ -133,7 +133,7 @@ CompressionCodecPtr CompressionCodecFactory::getStaticCodec= MAX_ZSTD_MAP_SIZE) zstd_map.clear(); auto [it, inserted] = zstd_map.emplace(setting.level, std::make_shared(setting.level)); - assert(inserted); + UNUSED(inserted); return it->second; }