1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

Fix clang 16 warnings for comfort build

This commit is contained in:
Leonid Fedorov
2022-12-27 19:07:28 +00:00
parent b4a6a35b40
commit d42485656c
11 changed files with 8 additions and 29 deletions

View File

@ -79,7 +79,7 @@ void PrimitiveProcessor::p_TokenByScan(const TokenByScanRequestHeader* h, TokenB
const uint8_t* niceBlock; // block cast to a byte-indexed type
const uint8_t* niceInput; // h cast to a byte-indexed type
const uint16_t* offsets;
int offsetIndex, argIndex, argsOffset;
int offsetIndex, argsOffset;
bool cmpResult = false;
int i;
const char* sig;
@ -122,7 +122,6 @@ void PrimitiveProcessor::p_TokenByScan(const TokenByScanRequestHeader* h, TokenB
siglen = offsets[offsetIndex - 1] - offsets[offsetIndex];
sig = reinterpret_cast<const char*>(&niceBlock[offsets[offsetIndex]]);
argsOffset = sizeof(TokenByScanRequestHeader);
argIndex = 0;
args = reinterpret_cast<const DataValue*>(&niceInput[argsOffset]);
if (eqFilter)
@ -161,7 +160,6 @@ void PrimitiveProcessor::p_TokenByScan(const TokenByScanRequestHeader* h, TokenB
goto store;
argsOffset += sizeof(uint16_t) + args->len;
argIndex++;
args = (DataValue*)&niceInput[argsOffset];
cmpResult = compare(cs, h->COP2, sig, siglen, args->data, args->len);
@ -186,7 +184,6 @@ void PrimitiveProcessor::p_TokenByScan(const TokenByScanRequestHeader* h, TokenB
goto store;
argsOffset += sizeof(uint16_t) + args->len;
argIndex++;
args = (DataValue*)&niceInput[argsOffset];
}