diff options
author | Chris Robinson <[email protected]> | 2019-09-14 18:27:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-14 18:35:23 -0700 |
commit | 807d3b64cac2793ce678acb3fc4d4191b2252875 (patch) | |
tree | b766e0838c75fcf069015078259c5bfbd56bce63 /utils/makemhr/loadsofa.cpp | |
parent | 2cc0600476fc4ed13a64eeb59c02c213bd3b6dd4 (diff) |
Enable and fix more warnings
Diffstat (limited to 'utils/makemhr/loadsofa.cpp')
-rw-r--r-- | utils/makemhr/loadsofa.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/utils/makemhr/loadsofa.cpp b/utils/makemhr/loadsofa.cpp index 02911e12..219eb558 100644 --- a/utils/makemhr/loadsofa.cpp +++ b/utils/makemhr/loadsofa.cpp @@ -101,7 +101,6 @@ static float GetUniformStepSize(const double epsilon, const uint m, const float { auto steps = std::vector<float>(m, 0.0f); auto counts = std::vector<uint>(m, 0u); - float step{0.0f}; uint count{0u}; for(uint stride{1u};stride < m/2;stride++) @@ -140,15 +139,12 @@ static float GetUniformStepSize(const double 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 |