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

ASF subversion and git services commented on MYNEWT-566:
--------------------------------------------------------

Commit 3f0d5f502b24df319656e994731d00bff0de21b7 in incubator-mynewt-core's 
branch refs/heads/develop from [~marko]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-core.git;h=3f0d5f5 
]

MYNEWT-566; nmgr_uart - fix warning when using -Werror=strict-aliasing


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

Reply via email to