aboutsummaryrefslogtreecommitdiffstats
path: root/utils/makemhr/loaddef.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-14 18:27:57 -0700
committerChris Robinson <[email protected]>2019-09-14 18:35:23 -0700
commit807d3b64cac2793ce678acb3fc4d4191b2252875 (patch)
treeb766e0838c75fcf069015078259c5bfbd56bce63 /utils/makemhr/loaddef.cpp
parent2cc0600476fc4ed13a64eeb59c02c213bd3b6dd4 (diff)
Enable and fix more warnings
Diffstat (limited to 'utils/makemhr/loaddef.cpp')
-rw-r--r--utils/makemhr/loaddef.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/makemhr/loaddef.cpp b/utils/makemhr/loaddef.cpp
index 5f6d76d8..aaefd62c 100644
--- a/utils/makemhr/loaddef.cpp
+++ b/utils/makemhr/loaddef.cpp
@@ -1737,7 +1737,7 @@ static int ProcessSources(TokenReaderT *tr, HrirDataT *hData)
hData->mHrirsBase.resize(channels * hData->mIrCount * hData->mIrSize);
double *hrirs = hData->mHrirsBase.data();
std::vector<double> hrir(hData->mIrPoints);
- uint line, col, fi, ei, ai, ti;
+ uint line, col, fi, ei, ai;
int count;
printf("Loading sources...");
@@ -1827,8 +1827,7 @@ static int ProcessSources(TokenReaderT *tr, HrirDataT *hData)
for(fi = 0;fi < hData->mFdCount;fi++)
{
double delta = aer[2] - hData->mFds[fi].mDistance;
- if(std::abs(delta) < 0.001)
- break;
+ if(std::abs(delta) < 0.001) break;
}
if(fi >= hData->mFdCount)
continue;
@@ -1892,7 +1891,6 @@ static int ProcessSources(TokenReaderT *tr, HrirDataT *hData)
for(;;)
{
SourceRefT src;
- uint ti = 0;
if(!ReadSourceRef(tr, &src))
return 0;
@@ -1907,6 +1905,7 @@ static int ProcessSources(TokenReaderT *tr, HrirDataT *hData)
if(!LoadSource(&src, hData->mIrRate, hData->mIrPoints, hrir.data()))
return 0;
+ uint ti{0};
if(hData->mChannelType == CT_STEREO)
{
char ident[MAX_IDENT_LEN+1];
@@ -1976,7 +1975,7 @@ static int ProcessSources(TokenReaderT *tr, HrirDataT *hData)
}
}
}
- for(ti = 0;ti < channels;ti++)
+ for(uint ti{0};ti < channels;ti++)
{
for(fi = 0;fi < hData->mFdCount;fi++)
{