aboutsummaryrefslogtreecommitdiffstats
path: root/src/OfdmGenerator.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-11 15:56:55 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-11 15:56:55 +0100
commitfdbea05b16e3c716b5226a1f0d45cc98561500e4 (patch)
treed6f4046b7f10e9b68d279cd3e6f33665582b6177 /src/OfdmGenerator.cpp
parentf0cd709e645a3d2210fce5daf80138696aac84e3 (diff)
downloaddabmod-fdbea05b16e3c716b5226a1f0d45cc98561500e4.tar.gz
dabmod-fdbea05b16e3c716b5226a1f0d45cc98561500e4.tar.bz2
dabmod-fdbea05b16e3c716b5226a1f0d45cc98561500e4.zip
Fix all the warnings shown since previous commit
Diffstat (limited to 'src/OfdmGenerator.cpp')
-rw-r--r--src/OfdmGenerator.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp
index a6609a3..915d568 100644
--- a/src/OfdmGenerator.cpp
+++ b/src/OfdmGenerator.cpp
@@ -230,9 +230,9 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut)
*/
double sum_iq = 0;
double sum_delta = 0;
- for (size_t i = 0; i < mySpacing; i++) {
- sum_iq += (double)std::norm(before_cfr[i]);
- sum_delta += (double)std::norm(symbol[i] - before_cfr[i]);
+ for (size_t j = 0; j < mySpacing; j++) {
+ sum_iq += (double)std::norm(before_cfr[j]);
+ sum_delta += (double)std::norm(symbol[j] - before_cfr[j]);
}
// Clamp to 90dB, otherwise the MER average is going to be inf
@@ -362,10 +362,10 @@ void OfdmGenerator::set_parameter(const std::string& parameter,
throw ParameterError("Parameter 'clip_stats' is read-only");
}
else {
- stringstream ss;
- ss << "Parameter '" << parameter
+ stringstream ss_err;
+ ss_err << "Parameter '" << parameter
<< "' is not exported by controllable " << get_rc_name();
- throw ParameterError(ss.str());
+ throw ParameterError(ss_err.str());
}
}