[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH] lib/vfscore: fcntl(): Remove unused variable `tmp`



Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>


On 1/27/20 1:52 PM, Simon Kuenzer wrote:
This commit avoids the compiler warning of the unused variable `tmp`
in `fcntl()`.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
  lib/vfscore/main.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/lib/vfscore/main.c b/lib/vfscore/main.c
index b3fc2f24..fc9c17a6 100644
--- a/lib/vfscore/main.c
+++ b/lib/vfscore/main.c
@@ -1448,7 +1448,9 @@ int fcntl(int fd, int cmd, ...)
        va_list ap;
        struct vfscore_file *fp;
        int ret = 0, error;
+#if defined(FIONBIO) && defined(FIOASYNC)
        int tmp;
+#endif
va_start(ap, cmd);
        arg = va_arg(ap, int);


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.