wifi: Mark variable as maybe unused

This commit is contained in:
Rui Chen
2024-06-12 18:03:22 -04:00
committed by Tom Henderson
parent c856c57fe5
commit 3571328118

View File

@@ -788,7 +788,7 @@ WifiSpectrumValueHelper::GetBandPowerW(Ptr<SpectrumValue> psd, const WifiSpectru
const auto bandWidth = (bandIt->fh - bandIt->fl);
NS_ASSERT_MSG(bandWidth >= 0.0,
"Invalid width for subband [" << bandIt->fl << ";" << bandIt->fh << "]");
uint32_t index{0};
uint32_t index [[maybe_unused]] = 0;
auto powerWattPerHertz{0.0};
while (valueIt <= end)
{