Fixing warnings in scwx-qt

This commit is contained in:
Dan Paulat 2022-06-11 07:42:18 -05:00
parent 3339a40780
commit ff58f5bcf6
15 changed files with 36 additions and 21 deletions

View file

@ -225,27 +225,27 @@ void Level3ProductView::UpdateColorTable()
uint16_t th = descriptionBlock->data_level_threshold(i);
if ((th & 0x8000u) == 0)
{
float scale = 1.0f;
float scaleFactor = 1.0f;
if (th & 0x4000u)
{
scale *= 0.01f;
scaleFactor *= 0.01f;
}
if (th & 0x2000u)
{
scale *= 0.05f;
scaleFactor *= 0.05f;
}
if (th & 0x1000u)
{
scale *= 0.1f;
scaleFactor *= 0.1f;
}
if (th & 0x0100u)
{
scale *= -1.0f;
scaleFactor *= -1.0f;
}
// If bit 0 is zero, then the LSB is numeric
f = static_cast<float>(th & 0x00ffu) * scale;
f = static_cast<float>(th & 0x00ffu) * scaleFactor;
lut[lutIndex] = p->colorTable_->Color(f);
}

View file

@ -254,8 +254,6 @@ void Level3RadialView::ComputeSweep()
dataMoments8.resize(radials * gates * VERTICES_PER_BIN);
// Compute threshold at which to display an individual bin
const float scale = descriptionBlock->scale();
const float offset = descriptionBlock->offset();
const uint16_t snrThreshold = descriptionBlock->threshold();
// Determine which radial to start at
@ -268,9 +266,7 @@ void Level3RadialView::ComputeSweep()
const auto dataMomentsArray8 = radialData->level(radial);
// Compute gate interval
const uint16_t dataMomentInterval = descriptionBlock->x_resolution_raw();
const uint16_t dataMomentIntervalH = dataMomentInterval / 2;
const uint16_t dataMomentRange = dataMomentIntervalH;
const uint16_t dataMomentInterval = descriptionBlock->x_resolution_raw();
// Compute gate size (number of base gates per bin)
const uint16_t gateSize = std::max<uint16_t>(

View file

@ -278,8 +278,6 @@ void Level3RasterView::ComputeSweep()
dataMoments8.resize(rows * maxColumns * VERTICES_PER_BIN);
// Compute threshold at which to display an individual bin
const float scale = descriptionBlock->scale();
const float offset = descriptionBlock->offset();
const uint16_t snrThreshold = descriptionBlock->threshold();
for (size_t row = 0; row < rasterData->number_of_rows(); ++row)

View file

@ -79,7 +79,7 @@ void RadarProductView::Initialize()
p->initialized_ = true;
}
void RadarProductView::SelectElevation(float elevation) {}
void RadarProductView::SelectElevation(float /*elevation*/) {}
bool RadarProductView::IsInitialized() const
{