mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:50:06 +00:00 
			
		
		
		
	Fixing warnings in scwx-qt
This commit is contained in:
		
							parent
							
								
									3339a40780
								
							
						
					
					
						commit
						ff58f5bcf6
					
				
					 15 changed files with 36 additions and 21 deletions
				
			
		|  | @ -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); | ||||
|             } | ||||
|  |  | |||
|  | @ -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>( | ||||
|  |  | |||
|  | @ -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) | ||||
|  |  | |||
|  | @ -79,7 +79,7 @@ void RadarProductView::Initialize() | |||
|    p->initialized_ = true; | ||||
| } | ||||
| 
 | ||||
| void RadarProductView::SelectElevation(float elevation) {} | ||||
| void RadarProductView::SelectElevation(float /*elevation*/) {} | ||||
| 
 | ||||
| bool RadarProductView::IsInitialized() const | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat