This is an automated email from the ASF dual-hosted git repository.
simbit18 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 17bc7a36ce4 video/imgdata: fix IMGDATA_SET_BUF macro int-conversion
warning
17bc7a36ce4 is described below
commit 17bc7a36ce47c90acc0507caa5208c6659643c27
Author: Yuran Wu <[email protected]>
AuthorDate: Tue Feb 3 18:18:28 2026 +0800
video/imgdata: fix IMGDATA_SET_BUF macro int-conversion warning
set_buf return type is not a pointer but an integer, this will cause
-Wint-conversion error.
Signed-off-by: chao an <[email protected]>
---
include/nuttx/video/imgdata.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/nuttx/video/imgdata.h b/include/nuttx/video/imgdata.h
index 99a80338d37..eb4130af51b 100644
--- a/include/nuttx/video/imgdata.h
+++ b/include/nuttx/video/imgdata.h
@@ -56,7 +56,7 @@
#define IMGDATA_UNINIT(d) \
((d)->ops->uninit ? (d)->ops->uninit(d) : -ENOTTY)
#define IMGDATA_SET_BUF(d, n, f, a, s) \
- ((d)->ops->set_buf ? (d)->ops->set_buf(d, n, f, a, s) : NULL)
+ ((d)->ops->set_buf ? (d)->ops->set_buf(d, n, f, a, s) : -ENOTTY)
#define IMGDATA_VALIDATE_FRAME_SETTING(d, n, f, i) \
((d)->ops->validate_frame_setting ? \
(d)->ops->validate_frame_setting(d, n, f, i) : -ENOTTY)