You've already forked mariadb-columnstore-engine
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:
committed by
Leonid Fedorov
parent
9fd7f342a7
commit
a0bee173f6
@ -202,7 +202,7 @@ class Parser : public Tokenizer
|
||||
explicit DD2MM(Parser* p) : A(p), B(A::isNull() ? B() : SetSyntaxErrorOnNull<B>(p))
|
||||
{
|
||||
}
|
||||
explicit DD2MM(const A& a, const B& b) : A(b), B(b)
|
||||
explicit DD2MM(const A& /*a*/, const B& b) : A(b), B(b)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
@ -266,7 +266,7 @@ class Hasher64_r
|
||||
return h;
|
||||
}
|
||||
|
||||
inline uint64_t finalize(uint64_t h, uint64_t len) const
|
||||
inline uint64_t finalize(uint64_t h, uint64_t /*len*/) const
|
||||
{
|
||||
h ^= h >> r;
|
||||
h *= m;
|
||||
|
@ -33,7 +33,7 @@ class Service
|
||||
// The pipe to send messages from the child to the parent
|
||||
Pipe m_pipe;
|
||||
|
||||
static void common_signal_handler_CHLD(int sig)
|
||||
static void common_signal_handler_CHLD(int /*sig*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -184,7 +184,7 @@ class SimdFilterProcessor<
|
||||
return _mm_loadu_si128(reinterpret_cast<const SimdType*>(from));
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpDummy(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpDummy(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
@ -219,12 +219,12 @@ class SimdFilterProcessor<
|
||||
return cmpDummy(x, y);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return _mm_set_epi64x(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL); // ????
|
||||
}
|
||||
@ -261,17 +261,17 @@ class SimdFilterProcessor<
|
||||
_mm_storeu_si128(reinterpret_cast<SimdType*>(dst), x);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType y, SimdType mask) const
|
||||
MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType /*y*/, SimdType /*mask*/) const
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE SimdType bwAnd(SimdType x, SimdType y) const
|
||||
MCS_FORCE_INLINE SimdType bwAnd(SimdType x, SimdType /*y*/) const
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE SimdType cmpGtSimdType(SimdType x, SimdType y) const
|
||||
MCS_FORCE_INLINE SimdType cmpGtSimdType(SimdType x, SimdType /*y*/) const
|
||||
{
|
||||
return x;
|
||||
}
|
||||
@ -364,12 +364,12 @@ class SimdFilterProcessor<
|
||||
return (MaskType)_mm_cmpneq_pd(x, y);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return _mm_set_epi64x(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL);
|
||||
}
|
||||
@ -525,12 +525,12 @@ class SimdFilterProcessor<
|
||||
return (MaskType)_mm_cmpneq_ps(x, y);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return _mm_set_epi64x(0xFFFFFFFFFFFFFFFFLL, 0xFFFFFFFFFFFFFFFFLL);
|
||||
}
|
||||
@ -678,12 +678,12 @@ class SimdFilterProcessor<
|
||||
return _mm_cmpeq_epi64(x, y) ^ loadValue(0xFFFFFFFFFFFFFFFF);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return loadValue(0xFFFFFFFFFFFFFFFF);
|
||||
}
|
||||
@ -823,12 +823,12 @@ class SimdFilterProcessor<
|
||||
return _mm_cmpeq_epi64(x, y) ^ loadValue(0xFFFFFFFFFFFFFFFF);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return loadValue(0xFFFFFFFFFFFFFFFF);
|
||||
}
|
||||
@ -976,12 +976,12 @@ class SimdFilterProcessor<
|
||||
return _mm_cmpeq_epi32(x, y) ^ loadValue(0xFFFFFFFF);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return loadValue(0xFFFF);
|
||||
}
|
||||
@ -1129,12 +1129,12 @@ class SimdFilterProcessor<
|
||||
return _mm_cmpeq_epi32(x, y) ^ loadValue(0xFFFFFFFF);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return loadValue(0xFFFFFFFF);
|
||||
}
|
||||
@ -1309,12 +1309,12 @@ class SimdFilterProcessor<
|
||||
return _mm_cmpeq_epi16(x, y) ^ loadValue(0xFFFF);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return loadValue(0xFFFF);
|
||||
}
|
||||
@ -1476,12 +1476,12 @@ class SimdFilterProcessor<VT, CHECK_T,
|
||||
return _mm_cmpeq_epi16(x, y) ^ loadValue(0xFFFF);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return loadValue(0xFFFF);
|
||||
}
|
||||
@ -1620,12 +1620,12 @@ class SimdFilterProcessor<
|
||||
return _mm_cmpeq_epi8(x, y) ^ loadValue(0xFF);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return loadValue(0xFF);
|
||||
}
|
||||
@ -1769,12 +1769,12 @@ class SimdFilterProcessor<
|
||||
return _mm_cmpeq_epi8(x, y) ^ loadValue(0xFF);
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysFalse(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return MaskType{0x0, 0x0};
|
||||
}
|
||||
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType x, SimdType y)
|
||||
MCS_FORCE_INLINE MaskType cmpAlwaysTrue(SimdType /*x*/, SimdType /*y*/)
|
||||
{
|
||||
return loadValue(0xFF);
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ class SimpleAllocator
|
||||
};
|
||||
|
||||
// inlines
|
||||
inline void* SimplePool::allocate(size_t n, const void* dur)
|
||||
inline void* SimplePool::allocate(size_t n, const void* /*dur*/)
|
||||
{
|
||||
// make sure the block allocated is on unit boundary
|
||||
size_t unitCount = n / fUnitSize;
|
||||
|
@ -38,7 +38,7 @@ namespace utils
|
||||
as the deleter. */
|
||||
struct BoostPoolDeallocator
|
||||
{
|
||||
inline void operator()(void* ptr) {};
|
||||
inline void operator()(void* /*ptr*/) {};
|
||||
};
|
||||
|
||||
/* This is an STL-compliant wrapper for PoolAllocator + an optimization for containers
|
||||
@ -134,14 +134,14 @@ STLPoolAllocator<T>::~STLPoolAllocator()
|
||||
|
||||
template <class T>
|
||||
typename STLPoolAllocator<T>::pointer STLPoolAllocator<T>::allocate(
|
||||
typename STLPoolAllocator<T>::size_type s, typename STLPoolAllocator<T>::const_pointer hint)
|
||||
typename STLPoolAllocator<T>::size_type s, typename STLPoolAllocator<T>::const_pointer /*hint*/)
|
||||
{
|
||||
return (pointer)pa->allocate(s * sizeof(T));
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void STLPoolAllocator<T>::deallocate(typename STLPoolAllocator<T>::pointer p,
|
||||
typename STLPoolAllocator<T>::size_type n)
|
||||
typename STLPoolAllocator<T>::size_type /*n*/)
|
||||
{
|
||||
pa->deallocate((void*)p);
|
||||
}
|
||||
|
Reference in New Issue
Block a user