diff options
author | Brad King <brad.king@kitware.com> | 2021-11-17 11:25:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-17 11:41:49 (GMT) |
commit | 51d26933fe3ab0c6ad19a253854c5c69331bb804 (patch) | |
tree | 6ffae2a31c1dd8b36172a4f58a97023955820fc2 /Utilities/cmlibuv/src/unix/fs.c | |
parent | f29bb586f0062fe8e7a6ff5f8ac4b20c5bcb4191 (diff) | |
download | CMake-51d26933fe3ab0c6ad19a253854c5c69331bb804.zip CMake-51d26933fe3ab0c6ad19a253854c5c69331bb804.tar.gz CMake-51d26933fe3ab0c6ad19a253854c5c69331bb804.tar.bz2 |
libuv: Fix clang-analyzer deadcode.DeadStores warning on Linux
Diffstat (limited to 'Utilities/cmlibuv/src/unix/fs.c')
-rw-r--r-- | Utilities/cmlibuv/src/unix/fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/unix/fs.c b/Utilities/cmlibuv/src/unix/fs.c index 6b41f88..40448f1 100644 --- a/Utilities/cmlibuv/src/unix/fs.c +++ b/Utilities/cmlibuv/src/unix/fs.c @@ -1040,11 +1040,12 @@ static ssize_t uv__fs_sendfile(uv_fs_t* req) { off = req->off; len = req->bufsml[0].len; - try_sendfile = 1; #ifdef __linux__ r = uv__fs_try_copy_file_range(in_fd, &off, out_fd, len); try_sendfile = (r == -1 && errno == ENOSYS); +#else + try_sendfile = 1; #endif if (try_sendfile) |