diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index 7d8579845f..11a416158a 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -254,6 +254,10 @@ add_compile_options(-g $<$:-Wnon-virtual-dtor>) add_compile_options(-Wno-unused-parameter + $<$:-Wno-incompatible-pointer-types> + -Wno-unknown-warning-option + -Wno-deprecated-declarations + -Wno-missing-designated-field-initializers -Wno-sign-compare) if (COMPILER_GCC) @@ -767,4 +771,3 @@ get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTO foreach(dir ${dirs}) message(STATUS "dir='${dir}'") endforeach() - diff --git a/be/src/pipeline/exec/exchange_sink_buffer.cpp b/be/src/pipeline/exec/exchange_sink_buffer.cpp index af66eedc1e..0991652aee 100644 --- a/be/src/pipeline/exec/exchange_sink_buffer.cpp +++ b/be/src/pipeline/exec/exchange_sink_buffer.cpp @@ -435,7 +435,7 @@ void ExchangeSinkBuffer::_construct_request(InstanceLoId id, PUniqueId f template void ExchangeSinkBuffer::_ended(InstanceLoId id) { - if (!_instance_to_package_queue_mutex.template contains(id)) { + if (!_instance_to_package_queue_mutex.contains(id)) { std::stringstream ss; ss << "failed find the instance id:" << id << " now mutex map size:" << _instance_to_package_queue_mutex.size(); diff --git a/be/src/pipeline/exec/exchange_sink_buffer.h b/be/src/pipeline/exec/exchange_sink_buffer.h index 5ce6d75b14..9ebf5bb77e 100644 --- a/be/src/pipeline/exec/exchange_sink_buffer.h +++ b/be/src/pipeline/exec/exchange_sink_buffer.h @@ -66,7 +66,7 @@ struct AtomicWrapper { AtomicWrapper(const AtomicWrapper& other) : _value(other._value.load()) {} - AtomicWrapper& operator=(const AtomicWrapper& other) { _value.store(other._a.load()); } + AtomicWrapper& operator=(const AtomicWrapper& other) { _value.store(other._value.load()); } }; // We use BroadcastPBlockHolder to hold a broadcasted PBlock. For broadcast shuffle, one PBlock diff --git a/be/src/pipeline/exec/hashjoin_probe_operator.cpp b/be/src/pipeline/exec/hashjoin_probe_operator.cpp index 0b88a174f9..a98c721577 100644 --- a/be/src/pipeline/exec/hashjoin_probe_operator.cpp +++ b/be/src/pipeline/exec/hashjoin_probe_operator.cpp @@ -317,8 +317,8 @@ Status HashJoinProbeOperatorX::pull(doris::RuntimeState* state, vectorized::Bloc if constexpr (!std::is_same_v) { using HashTableCtxType = std::decay_t; if constexpr (!std::is_same_v) { - st = process_hashtable_ctx.template process( + st = process_hashtable_ctx.template process< + need_null_map_for_probe, ignore_null, HashTableCtxType>( arg, need_null_map_for_probe ? &local_state._null_map_column->get_data() diff --git a/be/src/vec/columns/column_decimal.cpp b/be/src/vec/columns/column_decimal.cpp index 7c89b5518d..57cbcbeff5 100644 --- a/be/src/vec/columns/column_decimal.cpp +++ b/be/src/vec/columns/column_decimal.cpp @@ -437,7 +437,7 @@ template void ColumnDecimal::sort_column(const ColumnSorter* sorter, EqualFlags& flags, IColumn::Permutation& perms, EqualRange& range, bool last_column) const { - sorter->template sort_column(static_cast(*this), flags, perms, range, last_column); + sorter->sort_column(static_cast(*this), flags, perms, range, last_column); } template diff --git a/be/src/vec/columns/column_vector.cpp b/be/src/vec/columns/column_vector.cpp index 6c57397a83..c6afd3a3ce 100644 --- a/be/src/vec/columns/column_vector.cpp +++ b/be/src/vec/columns/column_vector.cpp @@ -133,7 +133,7 @@ template void ColumnVector::sort_column(const ColumnSorter* sorter, EqualFlags& flags, IColumn::Permutation& perms, EqualRange& range, bool last_column) const { - sorter->template sort_column(static_cast(*this), flags, perms, range, last_column); + sorter->sort_column(static_cast(*this), flags, perms, range, last_column); } template diff --git a/be/src/vec/exec/jni_connector.h b/be/src/vec/exec/jni_connector.h index a033a65206..67211f4437 100644 --- a/be/src/vec/exec/jni_connector.h +++ b/be/src/vec/exec/jni_connector.h @@ -93,7 +93,7 @@ public: struct ScanPredicate { ScanPredicate() = default; ~ScanPredicate() = default; - const std::string column_name; + std::string column_name; SQLFilterOp op; std::vector values; int scale; diff --git a/be/src/vec/functions/function_binary_arithmetic.h b/be/src/vec/functions/function_binary_arithmetic.h index d69b00043a..6b303238a3 100644 --- a/be/src/vec/functions/function_binary_arithmetic.h +++ b/be/src/vec/functions/function_binary_arithmetic.h @@ -545,7 +545,7 @@ private: if constexpr (IsDecimalV2 || IsDecimalV2) { // Now, Doris only support decimal +-*/ decimal. if constexpr (check_overflow) { - auto res = Op::template apply(DecimalV2Value(a), DecimalV2Value(b)).value(); + auto res = Op::apply(DecimalV2Value(a), DecimalV2Value(b)).value(); if (res > max_result_number.value || res < -max_result_number.value) { THROW_DECIMAL_BINARY_OP_OVERFLOW_EXCEPTION( DecimalV2Value(a).to_string(), Name::name, @@ -554,7 +554,7 @@ private: } return res; } else { - return Op::template apply(DecimalV2Value(a), DecimalV2Value(b)).value(); + return Op::apply(DecimalV2Value(a), DecimalV2Value(b)).value(); } } else { NativeResultType res; @@ -649,7 +649,7 @@ private: if constexpr (IsDecimalV2 || IsDecimalV2) { DecimalV2Value l(a); DecimalV2Value r(b); - auto ans = Op::template apply(l, r, is_null); + auto ans = Op::apply(l, r, is_null); using ANS_TYPE = std::decay_t; if constexpr (check_overflow && OpTraits::is_division) { if constexpr (std::is_same_v) {