[ 
https://issues.apache.org/jira/browse/MYNEWT-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15843625#comment-15843625
 ] 

Marko Kiiskila commented on MYNEWT-570:
---------------------------------------

Thanks for catching that. Fixed it.

> Enabling newtmgr uart transport introduces compile errors
> ---------------------------------------------------------
>
>                 Key: MYNEWT-570
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-570
>             Project: Mynewt
>          Issue Type: Bug
>          Components: Newtmgr
>    Affects Versions: v1_0_0_beta1
>            Reporter: Jacob
>            Assignee: Marko Kiiskila
>
>     - "@apache-mynewt-core/mgmt/newtmgr/transport/nmgr_uart"
> Jacobs-MacBook-Air:mynewt-hr-observer jacobrosenthal$ newt run split-nrf51dk 0
> .....
> 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)

Reply via email to