You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Jacob (JIRA)" <ji...@apache.org> on 2017/01/27 22:35:24 UTC

[jira] [Commented] (MYNEWT-570) Enabling newtmgr uart transport introduces compile errors

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

Jacob commented on MYNEWT-570:
------------------------------

I also believe this has an unlisted dependency on util/crc

On Fri, Jan 27, 2017 at 12:13 PM, Marko Kiiskila (JIRA) <ji...@apache.org>



> 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)