aboutsummaryrefslogtreecommitdiffstats
path: root/utils/sofa-info.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/sofa-info.cpp
parent2cc0600476fc4ed13a64eeb59c02c213bd3b6dd4 (diff)
Enable and fix more warnings
Diffstat (limited to 'utils/sofa-info.cpp')
-rw-r--r--utils/sofa-info.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/utils/sofa-info.cpp b/utils/sofa-info.cpp
index e9f2257c..87531b37 100644
--- a/utils/sofa-info.cpp
+++ b/utils/sofa-info.cpp
@@ -136,7 +136,6 @@ static float GetUniformStepSize(const float epsilon, const uint m, const float *
{
std::vector<float> steps(m, 0.0f);
std::vector<uint> counts(m, 0u);
- float step{0.0f};
uint count{0u};
for(uint stride{1u};stride < m/2;stride++)
@@ -175,15 +174,12 @@ static float GetUniformStepSize(const float epsilon, const uint m, const float *
count = 1;
if(counts[0] > m/2)
- {
- step = steps[0];
- return step;
- }
+ return steps[0];
}
if(counts[0] > 5)
- step = steps[0];
- return step;
+ return steps[0];
+ return 0.0f;
}
/* Attempts to produce a compatible layout. Most data sets tend to be