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

[jira] [Resolved] (MYNEWT-566) nmgr_uart transport does not compile

     [ https://issues.apache.org/jira/browse/MYNEWT-566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marko Kiiskila resolved MYNEWT-566.
-----------------------------------
    Resolution: Fixed

Fix pushed to develop.

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