Marko Kiiskila created MYNEWT-566:
-------------------------------------
Summary: nmgr_uart transport does not compile
Key: MYNEWT-566
URL: https://issues.apache.org/jira/browse/MYNEWT-566
Project: Mynewt
Issue Type: Bug
Reporter: Marko Kiiskila
Compile error though using it:
Error:
repos/apache-mynewt-core/mgmt/newtmgr/transport/nmgr_uart/src/nmgr_uart.c: In
function 'nmgr_uart_out':
repos/apache-mynewt-core/mgmt/newtmgr/transport/nmgr_uart/src/nmgr_uart.c:114:13:
error: dereferencing type-punned pointer will break strict-aliasing rules
[-Werror=strict-aliasing]
*(uint16_t *)tmp_buf = htons(mpkt->omp_len);
^
repos/apache-mynewt-core/mgmt/newtmgr/transport/nmgr_uart/src/nmgr_uart.c: In
function 'nmgr_uart_rx_char':
repos/apache-mynewt-core/mgmt/newtmgr/transport/nmgr_uart/src/nmgr_uart.c:330:23:
error: 'g_mgmt_evq' undeclared (first use in this function)
os_eventq_put(g_mgmt_evq, &nus->nus_cb_ev);
^
repos/apache-mynewt-core/mgmt/newtmgr/transport/nmgr_uart/src/nmgr_uart.c:330:23:
note: each undeclared identifier is reported only once for each function it
appears in
cc1: all warnings being treated as errors
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)