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)
|
void UARTSerial::tx_irq(void)
|
||||||
{
|
{
|
||||||
bool was_full = _txbuf.full();
|
bool was_full = _txbuf.full();
|
||||||
|
char data;
|
||||||
|
|
||||||
/* Write to the peripheral if there is something to write
|
/* Write to the peripheral if there is something to write
|
||||||
* and if the peripheral is available to write. */
|
* and if the peripheral is available to write. */
|
||||||
while (!_txbuf.empty() && SerialBase::writeable()) {
|
while (SerialBase::writeable() && _txbuf.pop(data)) {
|
||||||
char data;
|
|
||||||
_txbuf.pop(data);
|
|
||||||
SerialBase::_base_putc(data);
|
SerialBase::_base_putc(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue