You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ma...@apache.org on 2021/03/01 00:23:19 UTC
[incubator-nuttx] 01/03: fs/fs.h: Reference the argumnet 'r' in
_NX_SETERRNO
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 <xi...@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 <xi...@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