diff options
| author | Jeff Epler <jepler@unpythonic.net> | 2018-03-19 20:40:04 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@unpythonic.net> | 2018-03-19 20:40:04 -0500 |
| commit | dddfad6594d0e28497f82552a966729d270c7681 (patch) | |
| tree | 1cc72b56020780fe383c446b9fd25588fae84807 /py/stackctrl.h | |
| parent | bf42611738cd875e1bc6e278040283675599f7b8 (diff) | |
UART: Fix maybe-uninitialized diagnostic
The following error occurs when building with gcc 5.4.1 (debian stretch):
common-hal/busio/UART.c:104:83: error: 'sercom_index' may be used uninitialized in this function [-Werror=maybe-uninitialized]
sercom_insts[rx->sercom[j].index]->USART.CTRLA.bit.ENABLE == 0) ||
It may be related to the addition of rx-only UARTs; gcc is unable
to infer the intended relationship between have_tx and sercom_index
being set (I am still not entirely confident of it myself)
Diffstat (limited to 'py/stackctrl.h')
0 files changed, 0 insertions, 0 deletions
