mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6611 from pauluap/compiler_warning_UARTSerial
Uninitialized variable warning in UARTSerial at -O3pull/6537/merge
commit
f372bcb69b
|
@ -305,12 +305,11 @@ void UARTSerial::rx_irq(void)
|
|||
void UARTSerial::tx_irq(void)
|
||||
{
|
||||
bool was_full = _txbuf.full();
|
||||
char data;
|
||||
|
||||
/* Write to the peripheral if there is something to write
|
||||
* and if the peripheral is available to write. */
|
||||
while (!_txbuf.empty() && SerialBase::writeable()) {
|
||||
char data;
|
||||
_txbuf.pop(data);
|
||||
while (SerialBase::writeable() && _txbuf.pop(data)) {
|
||||
SerialBase::_base_putc(data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue