Skip to content

Commit 623b475

Browse files
authored
[fix] compile errors/warning with gcc 12 (#629)
1 parent 95bf0f9 commit 623b475

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

bolt/shuffle/sparksql/compression/ZstdCodec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ZstdCodec::ZstdCodec(const ZstdCodecOptions& options)
6464

6565
std::string ZstdCodec::toString() const {
6666
if (nbWorkers_ > 0) {
67-
return fmt::format("{}: {}, nbWorkers: {}", name(), nbWorkers_);
67+
return fmt::format("{}, nbWorkers: {}", name(), nbWorkers_);
6868
}
6969
return Codec::toString();
7070
}

scripts/conan/recipes/paimon-cpp/all/conanfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ def _use_cxx11_abi(self) -> bool:
109109
def generate(self):
110110
tc = CMakeToolchain(self)
111111

112+
flags = "-Wno-error=uninitialized -Wno-error=maybe-uninitialized"
113+
tc.cache_variables["CMAKE_CXX_FLAGS"] = flags
114+
tc.cache_variables["CMAKE_C_FLAGS"] = flags
115+
112116
tc.variables["PAIMON_BUILD_TESTS"] = False
113117
tc.variables["PAIMON_BUILD_SHARED"] = bool(self.options.shared)
114118
tc.variables["PAIMON_BUILD_STATIC"] = not bool(self.options.shared)

0 commit comments

Comments
 (0)