This is an automated email from the ASF dual-hosted git repository. janc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push: new 374e0bc8 Fix missing includes and missing return (compiler gives error) 374e0bc8 is described below commit 374e0bc85c1c59c5e4ec29ffedfd1f8288c792d8 Author: Bas van den Berg <b.van.den.berg...@gmail.com> AuthorDate: Thu Oct 6 10:58:57 2022 +0200 Fix missing includes and missing return (compiler gives error) --- nimble/transport/include/nimble/transport/transport_ipc.h | 3 +++ nimble/transport/nrf5340/src/nrf5340_ble_hci.c | 1 + nimble/transport/src/transport.c | 1 + 3 files changed, 5 insertions(+) diff --git a/nimble/transport/include/nimble/transport/transport_ipc.h b/nimble/transport/include/nimble/transport/transport_ipc.h index 18175149..8059c3ae 100644 --- a/nimble/transport/include/nimble/transport/transport_ipc.h +++ b/nimble/transport/include/nimble/transport/transport_ipc.h @@ -20,10 +20,13 @@ #ifndef H_NIMBLE_TRANSPORT_IPC_ #define H_NIMBLE_TRANSPORT_IPC_ +#include <syscfg/syscfg.h> + #ifdef __cplusplus extern "C" { #endif + /* NOTE: These APIs shall only be used by IPC transports */ #define BLE_TRANSPORT_IPC \ diff --git a/nimble/transport/nrf5340/src/nrf5340_ble_hci.c b/nimble/transport/nrf5340/src/nrf5340_ble_hci.c index e5ea5a51..9ee36178 100644 --- a/nimble/transport/nrf5340/src/nrf5340_ble_hci.c +++ b/nimble/transport/nrf5340/src/nrf5340_ble_hci.c @@ -19,6 +19,7 @@ #include <assert.h> #include <string.h> +#include <syscfg/syscfg.h> #include <sysinit/sysinit.h> #include <nimble/ble.h> #include <ipc_nrf5340/ipc_nrf5340.h> diff --git a/nimble/transport/src/transport.c b/nimble/transport/src/transport.c index 4e811495..a1ee3409 100644 --- a/nimble/transport/src/transport.c +++ b/nimble/transport/src/transport.c @@ -287,5 +287,6 @@ ble_transport_ipc_buf_evt_type_get(void *buf) } else { assert(0); } + return 0; } #endif