Skip to content

Commit

Permalink
Initialize more class fields to resolve compilation issues on some co…
Browse files Browse the repository at this point in the history
…mpilers (#5412)

This PR aims to fix Release compilation issues here:
https://github.com/TileDB-Inc/TileDB/actions/runs/12376484635/job/34543717418#step:9:238


---
TYPE: BUG
DESC: Initialize more class fields to resolve compilation issues on some compilers

---------

Co-authored-by: Dušan Baran <me.dusanbaran@gmail.com>
  • Loading branch information
dudoslav and Dušan Baran authored Jan 2, 2025
1 parent 41c8a10 commit 5ff4a35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/src/unit-capi-serialized_queries.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ using ResultSetType = std::map<std::string, std::any>;
namespace {

template <class T>
bool check_result(const T a, const T b, size_t start, size_t end) {
bool check_result(const T& a, const T& b, size_t start, size_t end) {
auto a_exp = T(a.begin() + start, a.begin() + end);
auto b_exp = T(b.begin() + start, b.begin() + end);
return a_exp == b_exp;
Expand Down
2 changes: 1 addition & 1 deletion tiledb/sm/filter/filter_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class FilterBuffer {
shared_ptr<Buffer> underlying_buffer_;

/** True if this instance is a view on the underlying buffer. */
bool is_view_;
bool is_view_{false};

/**
* If this instance is a view, the view Buffer (which does not own its
Expand Down
2 changes: 1 addition & 1 deletion tiledb/sm/filter/filter_pipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class FilterPipeline {
std::vector<shared_ptr<Filter>> filters_;

/** The max chunk size allowed within tiles. */
uint32_t max_chunk_size_;
uint32_t max_chunk_size_{0};

/**
* Get the chunk offsets for a var sized tile so that integral cells are
Expand Down

0 comments on commit 5ff4a35

Please sign in to comment.