diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake index a85fe8963c7..38524acaff6 100644 --- a/cmake/warnings.cmake +++ b/cmake/warnings.cmake @@ -191,5 +191,16 @@ elseif (COMPILER_GCC) # 34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); # For some reason (bug in gcc?) macro 'GCC diagnostic ignored "-Wstringop-overflow"' doesn't help. add_cxx_compile_options(-Wno-stringop-overflow) + # reinterpretAs.cpp:182:31: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type + # ‘using ToFieldType = using FieldType = using UUID = struct StrongTypedef, DB::UUIDTag>’ + # {aka ‘struct StrongTypedef, DB::UUIDTag>’} from an array of ‘const char8_t’ + add_cxx_compile_options(-Wno-error=class-memaccess) + endif() + + if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11) + # reinterpretAs.cpp:182:31: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type + # ‘using ToFieldType = using FieldType = using UUID = struct StrongTypedef, DB::UUIDTag>’ + # {aka ‘struct StrongTypedef, DB::UUIDTag>’} from an array of ‘const char8_t’ + add_cxx_compile_options(-Wno-error=class-memaccess) endif() endif () diff --git a/contrib/fastops b/contrib/fastops index 88752a5e03c..ac7ca889858 160000 --- a/contrib/fastops +++ b/contrib/fastops @@ -1 +1 @@ -Subproject commit 88752a5e03cf34639a4a37a4b41d8b463fffd2b5 +Subproject commit ac7ca8898589f63f0e7e904199469730d96aefa5 diff --git a/contrib/llvm b/contrib/llvm index e5751459412..80b3a6fd1be 160000 --- a/contrib/llvm +++ b/contrib/llvm @@ -1 +1 @@ -Subproject commit e5751459412bce1391fb7a2e9bbc01e131bf72f1 +Subproject commit 80b3a6fd1be8249f613b945ff49c24d3ee31d6e6 diff --git a/contrib/rocksdb b/contrib/rocksdb index b6480c69bf3..22690ed890f 160000 --- a/contrib/rocksdb +++ b/contrib/rocksdb @@ -1 +1 @@ -Subproject commit b6480c69bf3ab6e298e0d019a07fd4f69029b26a +Subproject commit 22690ed890fc99873089abcdfc0977182e757c91 diff --git a/src/Compression/CompressionCodecEncrypted.cpp b/src/Compression/CompressionCodecEncrypted.cpp index 47f93eb6202..7d667fbc1b7 100644 --- a/src/Compression/CompressionCodecEncrypted.cpp +++ b/src/Compression/CompressionCodecEncrypted.cpp @@ -106,7 +106,7 @@ namespace DB std::string CompressionCodecEncrypted::lastErrorString() { - std::array buffer; + std::array buffer{}; ERR_error_string_n(ERR_get_error(), buffer.data(), buffer.size()); return std::string(buffer.data()); } diff --git a/tests/ci/ci_config.json b/tests/ci/ci_config.json index cbae9a86fdf..fbb2c1d41a9 100644 --- a/tests/ci/ci_config.json +++ b/tests/ci/ci_config.json @@ -12,7 +12,7 @@ "with_coverage": false }, { - "compiler": "clang-12", + "compiler": "gcc-11", "build-type": "", "sanitizer": "", "package-type": "performance",