From 0dedb7e6286dfc9f21f8bc838623bf0e8e3acaa1 Mon Sep 17 00:00:00 2001 From: Alexey Antipovsky Date: Wed, 9 Jun 2021 16:51:00 +0300 Subject: [PATCH] Fix compilation warnings --- dbcon/joblist/tuple-bps.cpp | 2 -- utils/rowgroup/rowaggregation.cpp | 1 - writeengine/bulk/we_colbufcompressed.cpp | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dbcon/joblist/tuple-bps.cpp b/dbcon/joblist/tuple-bps.cpp index 65ea7d9cb..f05432bb7 100644 --- a/dbcon/joblist/tuple-bps.cpp +++ b/dbcon/joblist/tuple-bps.cpp @@ -179,8 +179,6 @@ void TupleBPS::initializeConfigParms() fProcessorThreadsPerScan = fRm->getJlProcessorThreadsPerScan(); fNumThreads = 0; - config::Config* cf = config::Config::makeConfig(); - fExtentsPerSegFile = DEFAULT_EXTENTS_PER_SEG_FILE; if (fRequestSize >= fMaxOutstandingRequests) diff --git a/utils/rowgroup/rowaggregation.cpp b/utils/rowgroup/rowaggregation.cpp index 558ad2a6e..91074d895 100755 --- a/utils/rowgroup/rowaggregation.cpp +++ b/utils/rowgroup/rowaggregation.cpp @@ -1283,7 +1283,6 @@ void RowAggregation::doSum(const Row& rowIn, int64_t colIn, int64_t colOut, int bool isWideDataType = false; void *wideValInPtr = nullptr; - long double valOut = fRow.getLongDoubleField(colOut); if (rowIn.isNullValue(colIn)) return; diff --git a/writeengine/bulk/we_colbufcompressed.cpp b/writeengine/bulk/we_colbufcompressed.cpp index b7c1278f2..fdce6c1a7 100644 --- a/writeengine/bulk/we_colbufcompressed.cpp +++ b/writeengine/bulk/we_colbufcompressed.cpp @@ -593,7 +593,7 @@ int ColumnBufferCompressed::saveCompressionHeaders( ) // If lbid written in the header is not 0 and not equal to `lastupdatedlbid` - we are running // for the next extent for column segment file. const auto lastUpdatedLbid = fColInfo->getLastUpdatedLBID(); - if (lbid && lastUpdatedLbid != lbid) + if (lbid && (uint64_t)lastUpdatedLbid != lbid) { // Write back lbid, after header initialization. fCompressor->setLBIDByIndex(hdrBuf, lbid, 0);