diff --git a/plugins/channeltx/modrtty/rttymodsource.cpp b/plugins/channeltx/modrtty/rttymodsource.cpp index a42ce7a87..aec6351ac 100644 --- a/plugins/channeltx/modrtty/rttymodsource.cpp +++ b/plugins/channeltx/modrtty/rttymodsource.cpp @@ -420,10 +420,9 @@ void RttyModSource::encodeText(const QString& text) { unsigned bits; unsigned bitCount; - bool error; - error = m_rttyEncoder.encode(s[i], bits, bitCount); - for (int j = 0; j < bitCount; j++) + m_rttyEncoder.encode(s[i], bits, bitCount); + for (unsigned int j = 0; j < bitCount; j++) { int txBit = (bits >> j) & 1; addBit(txBit); diff --git a/sdrbase/dsp/raisedcosine.h b/sdrbase/dsp/raisedcosine.h index 7975901a4..6c7438394 100644 --- a/sdrbase/dsp/raisedcosine.h +++ b/sdrbase/dsp/raisedcosine.h @@ -40,7 +40,7 @@ public: void create(double beta, int symbolSpan, int samplesPerSymbol, bool normaliseUpsampledAmplitude = false) { int nTaps = symbolSpan * samplesPerSymbol + 1; - int i, j; + int i; // check constraints if(!(nTaps & 1)) { diff --git a/sdrbase/util/baudot.cpp b/sdrbase/util/baudot.cpp index 00cfd09cc..56e50b240 100644 --- a/sdrbase/util/baudot.cpp +++ b/sdrbase/util/baudot.cpp @@ -307,7 +307,7 @@ bool BaudotEncoder::encode(QChar c, unsigned &bits, unsigned int &bitCount) // Look for character in other pages const QString switchPage[] = { ">", "<", "\0" }; - for (int page = m_page == LETTERS ? 1 : 0; page < (m_characterSet == Baudot::RUSSIAN) ? 3 : 2; page++) + for (int page = m_page == LETTERS ? 1 : 0; page < ((m_characterSet == Baudot::RUSSIAN) ? 3 : 2); page++) { if (m_chars[page].contains(s)) {