1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

chore(build): fixes to satisfy clang19 warnings

This commit is contained in:
Leonid Fedorov
2025-05-08 15:26:36 +00:00
committed by Leonid Fedorov
parent 9fd7f342a7
commit a0bee173f6
334 changed files with 3062 additions and 3323 deletions

View File

@ -29,7 +29,7 @@ using namespace ordering;
namespace windowfunction
{
int64_t FrameBound::getBound(int64_t b, int64_t e, int64_t c)
int64_t FrameBound::getBound(int64_t b, int64_t e, int64_t /*c*/)
{
if (fBoundType == WF__UNBOUNDED_PRECEDING)
return b;

View File

@ -193,7 +193,7 @@ void FrameBoundConstantRange<T>::getValue(ValueType<T>& v, int64_t i)
}
template <typename T>
T FrameBoundConstantRange<T>::getValueByType(int64_t i)
T FrameBoundConstantRange<T>::getValueByType(int64_t /*i*/)
{
T t;
return t;

View File

@ -34,7 +34,7 @@ using namespace ordering;
namespace windowfunction
{
int64_t FrameBoundRow::getBound(int64_t b, int64_t e, int64_t c)
int64_t FrameBoundRow::getBound(int64_t /*b*/, int64_t /*e*/, int64_t c)
{
return c;
}

View File

@ -171,10 +171,8 @@ class BigIntCompare : public Compare
class WideDecimalCompare : public Compare
{
int keyColumnOffset;
public:
WideDecimalCompare(const IdbSortSpec& spec, int offset) : Compare(spec), keyColumnOffset(offset)
WideDecimalCompare(const IdbSortSpec& spec, int /*offset*/) : Compare(spec)
{
}

View File

@ -184,7 +184,7 @@ void WF_lead_lag<T>::parseParms(const std::vector<execplan::SRCP>& parms)
}
template <typename T>
void WF_lead_lag<T>::operator()(int64_t b, int64_t e, int64_t c)
void WF_lead_lag<T>::operator()(int64_t b, int64_t e, int64_t /*c*/)
{
uint64_t colIn = fFieldIndex[1];
bool isNull = true;

View File

@ -39,8 +39,8 @@ using namespace joblist;
namespace windowfunction
{
boost::shared_ptr<WindowFunctionType> WF_ranking::makeFunction(int id, const string& name, int ct,
WindowFunctionColumn* wc)
boost::shared_ptr<WindowFunctionType> WF_ranking::makeFunction(int id, const string& name, int /*ct*/,
WindowFunctionColumn* /*wc*/)
{
boost::shared_ptr<WindowFunctionType> func(new WF_ranking(id, name));
return func;

View File

@ -51,7 +51,7 @@ using namespace joblist;
namespace windowfunction
{
template <typename T_IN, typename T_OUT>
inline void WF_sum_avg<T_IN, T_OUT>::checkSumLimit(const T_IN& val, const T_OUT& sum)
inline void WF_sum_avg<T_IN, T_OUT>::checkSumLimit(const T_IN& /*val*/, const T_OUT& /*sum*/)
{
}
@ -63,8 +63,8 @@ inline void WF_sum_avg<int128_t, int128_t>::checkSumLimit(const int128_t& val, c
}
template <>
inline void WF_sum_avg<long double, long double>::checkSumLimit(const long double& val,
const long double& sum)
inline void WF_sum_avg<long double, long double>::checkSumLimit(const long double& /*val*/,
const long double& /*sum*/)
{
}
@ -138,7 +138,7 @@ int128_t WF_sum_avg<T_IN, T_OUT>::calculateAvg(const int128_t& sum, const uint64
template <typename T_IN, typename T_OUT>
inline long double WF_sum_avg<T_IN, T_OUT>::calculateAvg(const long double& sum, const uint64_t count,
const int scale)
const int /*scale*/)
{
return sum / count;
}

View File

@ -53,9 +53,9 @@ using namespace joblist;
namespace windowfunction
{
boost::shared_ptr<WindowFunctionType> WF_udaf::makeFunction(int id, const string& name, int ct,
boost::shared_ptr<WindowFunctionType> WF_udaf::makeFunction(int id, const string& name, int /*ct*/,
mcsv1sdk::mcsv1Context& context,
WindowFunctionColumn* wc)
WindowFunctionColumn* /*wc*/)
{
boost::shared_ptr<WindowFunctionType> func;

View File

@ -237,7 +237,7 @@ const string WindowFunctionType::toString() const
}
template <typename T>
void WindowFunctionType::getValue(uint64_t i, T& t, CDT* cdt)
void WindowFunctionType::getValue(uint64_t /*i*/, T& /*t*/, CDT* /*cdt*/)
{
}
@ -297,7 +297,7 @@ void WindowFunctionType::getValue<long double>(uint64_t i, long double& t, CDT*
}
template <>
void WindowFunctionType::getValue<utils::NullString>(uint64_t i, utils::NullString& t, CDT* cdt)
void WindowFunctionType::getValue<utils::NullString>(uint64_t i, utils::NullString& t, CDT* /*cdt*/)
{
t = fRow.getStringField(i);
// By not setting cdt, we let it default to the column's type
@ -315,7 +315,7 @@ void WindowFunctionType::getValue<int128_t>(uint64_t i, int128_t& t, CDT* cdt)
}
template <typename T>
void WindowFunctionType::setValue(uint64_t i, T& t)
void WindowFunctionType::setValue(uint64_t /*i*/, T& /*t*/)
{
}
@ -579,7 +579,7 @@ void WindowFunctionType::implicit2T<utils::NullString>(uint64_t i, utils::NullSt
}
template <typename T>
void WindowFunctionType::getConstValue(ConstantColumn* cc, T& t, bool& b)
void WindowFunctionType::getConstValue(ConstantColumn* /*cc*/, T& /*t*/, bool& /*b*/)
{
}