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 2025/09/15 07:19:44 UTC
(mynewt-nimble) branch master updated: porting/npl/nuttx: fix compile error
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 170142813 porting/npl/nuttx: fix compile error
170142813 is described below
commit 1701428134710ab718fb20fdfd138652cfb91516
Author: v-tangmeng <v-...@xiaomi.com>
AuthorDate: Mon Sep 15 13:51:22 2025 +0800
porting/npl/nuttx: fix compile error
porting/npl/nuttx/src/os_callout.c:125:24:
error: comparison between pointer and integer [-Werror]
125 | return (c->c_timer != NULL);
| ^~
cc1: all warnings being treated as errors
Signed-off-by: v-tangmeng <v-...@xiaomi.com>
---
porting/npl/nuttx/src/os_callout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/porting/npl/nuttx/src/os_callout.c b/porting/npl/nuttx/src/os_callout.c
index 3b4ee5fb0..5b384dc8f 100644
--- a/porting/npl/nuttx/src/os_callout.c
+++ b/porting/npl/nuttx/src/os_callout.c
@@ -122,7 +122,7 @@ ble_npl_callout_is_active(struct ble_npl_callout *c)
int
ble_npl_callout_inited(struct ble_npl_callout *c)
{
- return (c->c_timer != NULL);
+ return (c->c_timer != 0);
}
ble_npl_error_t