From fb2a6d4a15ac41bacee1e183c7f3aa94f0566012 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 5 Aug 2013 02:23:35 +0200 Subject: [PATCH] openbsd: fix uv_fs_sendfile() unused variable warnings --- src/unix/fs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unix/fs.c b/src/unix/fs.c index 142e4a0b..ecd2b239 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -468,6 +468,10 @@ static ssize_t uv__fs_sendfile(uv_fs_t* req) { return -1; } #else + /* Squelch compiler warnings. */ + (void) &in_fd; + (void) &out_fd; + return uv__fs_sendfile_emul(req); #endif }