juribeparada / MMDVM_HS

MMDVM HotSpot: firmware for ZUMspot or MMDVM_HS based boards (D-Star, DMR, YSF, P25, NXDN and POCSAG)
GNU General Public License v2.0
351 stars 140 forks source link

Fix two compiler warnings about indentiation #47

Closed phl0 closed 6 years ago

phl0 commented 6 years ago

Fix two compiler warnings:

SerialPort.cpp: In member function 'void CSerialPort::process()':
SerialPort.cpp:801:15: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
               if (m_modemState == STATE_IDLE || m_modemState == STATE_POCSAG)
               ^~
SerialPort.cpp:803:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
                 err = pocsagTX.writeData(m_buffer + 3U, m_len - 3U);
                 ^~~

and

DStarTX.cpp:384:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if (d & 0x08U)
       ^~
DStarTX.cpp:386:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         i++;
         ^