This is an automated email from the ASF dual-hosted git repository. masayuki pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit cf73496d9e643cbbe846a51a6a048634fb30df69 Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Mon Feb 22 03:00:14 2021 +0800 fs/fs.h: Reference the argumnet 'r' in _NX_SETERRNO to avoid the unused variable warning Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> --- include/nuttx/fs/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/fs/fs.h b/include/nuttx/fs/fs.h index a8eec37..f651808 100644 --- a/include/nuttx/fs/fs.h +++ b/include/nuttx/fs/fs.h @@ -87,7 +87,7 @@ # define _NX_IOCTL(f,r,a) ioctl(f,r,a) # define _NX_STAT(p,s) stat(p,s) # define _NX_GETERRNO(r) errno -# define _NX_SETERRNO(r) +# define _NX_SETERRNO(r) ((void)(r)) # define _NX_GETERRVAL(r) (-errno) #endif