Skip to content

Commit 9cdb643

Browse files
committed
fix
1 parent 5ad9b9c commit 9cdb643

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

clickhouse/columns/map.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class ColumnMapT : public ColumnMap {
126126
: data_iterator_(data_iterator) {}
127127

128128
using ValueType = std::pair<Key, Value>;
129+
using value_type = ValueType;
129130

130131
inline auto operator*() const {
131132
auto tuple = *data_iterator_;

clickhouse/columns/tuple.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class ColumnTupleT : public ColumnTuple {
119119

120120
private:
121121
template <typename T, size_t index = std::tuple_size_v<T>>
122-
inline static std::vector<ColumnRef> TupleToVector(const T& value) {
122+
inline static std::vector<ColumnRef> TupleToVector([[maybe_unused]] const T& value) {
123123
static_assert(index <= std::tuple_size_v<T>);
124124
if constexpr (index == 0) {
125125
std::vector<ColumnRef> result;
@@ -133,7 +133,7 @@ class ColumnTupleT : public ColumnTuple {
133133
}
134134

135135
template <typename T, size_t column_index = std::tuple_size_v<TupleOfColumns>>
136-
inline static auto VectorToTuple(T columns) {
136+
inline static auto VectorToTuple([[maybe_unused]] T columns) {
137137
static_assert(column_index <= std::tuple_size_v<TupleOfColumns>);
138138
if constexpr (column_index == 0) {
139139
return std::make_tuple();
@@ -147,7 +147,7 @@ class ColumnTupleT : public ColumnTuple {
147147
}
148148

149149
template <size_t column_index = std::tuple_size_v<TupleOfColumns>>
150-
inline auto GetTupleOfValues(size_t index) const {
150+
inline auto GetTupleOfValues([[maybe_unused]]size_t index) const {
151151
static_assert(column_index <= std::tuple_size_v<TupleOfColumns>);
152152
if constexpr (column_index == 0) {
153153
return std::make_tuple();

ut/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ inline const char * getPrefix() {
7777
}
7878

7979
template <typename T, size_t index = std::tuple_size_v<T> >
80-
inline std::ostream & printTuple(std::ostream & ostr, const T & t) {
80+
inline std::ostream & printTuple(std::ostream & ostr, [[maybe_unused]] const T & t) {
8181
static_assert(index <= std::tuple_size_v<T>);
8282
if constexpr (index == 0) {
8383
return ostr << "( ";

0 commit comments

Comments
 (0)