summaryrefslogtreecommitdiff
path: root/py/objstringio.c
diff options
context:
space:
mode:
authorJeff Epler <jepler@unpythonic.net>2018-03-19 20:40:04 -0500
committerJeff Epler <jepler@unpythonic.net>2018-03-19 20:40:04 -0500
commitdddfad6594d0e28497f82552a966729d270c7681 (patch)
tree1cc72b56020780fe383c446b9fd25588fae84807 /py/objstringio.c
parentbf42611738cd875e1bc6e278040283675599f7b8 (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/objstringio.c')
0 files changed, 0 insertions, 0 deletions