From cf73496d9e643cbbe846a51a6a048634fb30df69 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 22 Feb 2021 03:00:14 +0800 Subject: [PATCH] fs/fs.h: Reference the argumnet 'r' in _NX_SETERRNO to avoid the unused variable warning Signed-off-by: Xiang Xiao --- 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 a8eec37259..f651808ebc 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