Skip to content

Commit

Permalink
Fix compiler warnings on AMD platforms as well as sanitizer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kontinuation committed Sep 12, 2024
1 parent c56133c commit 174e1e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion cpp/src/parquet/geometry_util_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ class WKBSequenceBounder {
class WKBGenericSequenceBounder {
public:
WKBGenericSequenceBounder()
: xy_(chunk_),
: chunk_{0.0},
xy_(chunk_),
xyz_(chunk_),
xym_(chunk_),
xyzm_(chunk_),
Expand Down
11 changes: 5 additions & 6 deletions cpp/src/parquet/reader_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1836,15 +1836,14 @@ class TestGeometryLogicalType : public ::testing::Test {

// Write small batches and small data pages

auto writer_props_builder = WriterProperties::Builder()
.write_batch_size(64)
->data_pagesize(128)
->data_page_version(data_page_version);
auto writer_props_builder = WriterProperties::Builder();
writer_props_builder.write_batch_size(64)->data_pagesize(128)->data_page_version(
data_page_version);
if (enable_write_page_index) {
writer_props_builder->enable_write_page_index();
writer_props_builder.enable_write_page_index();
}

std::shared_ptr<WriterProperties> writer_props = writer_props_builder->build();
std::shared_ptr<WriterProperties> writer_props = writer_props_builder.build();

ASSERT_OK_AND_ASSIGN(auto out_file, ::arrow::io::BufferOutputStream::Create());
std::shared_ptr<ParquetFileWriter> file_writer =
Expand Down

0 comments on commit 174e1e1

Please sign in to comment.