You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2024/02/13 14:48:09 UTC

(mynewt-nimble) branch master updated: nimble/host: Fix compilation issues observed by enabling -O2 optimization

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 768a6c716 nimble/host: Fix compilation issues observed by enabling -O2 optimization
768a6c716 is described below

commit 768a6c7165cff32d6a3410cac1f9e2121e57a13a
Author: Rahul Tank <ra...@espressif.com>
AuthorDate: Wed Feb 7 12:51:45 2024 +0530

    nimble/host: Fix compilation issues observed by enabling -O2 optimization
---
 nimble/host/src/ble_gattc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/src/ble_gattc.c b/nimble/host/src/ble_gattc.c
index 91f579c73..be19f2dc9 100644
--- a/nimble/host/src/ble_gattc.c
+++ b/nimble/host/src/ble_gattc.c
@@ -1509,7 +1509,7 @@ static int
 ble_gattc_disc_all_svcs_rx_adata(struct ble_gattc_proc *proc,
                                  struct ble_att_read_group_type_adata *adata)
 {
-    struct ble_gatt_svc service;
+    struct ble_gatt_svc service = {0};
     int cbrc;
     int rc;