mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 13:27:09 +00:00
libuv: Fix clang-analyzer diagnostics
This commit is contained in:
1 parent
65bf6958a3
commit
8411f680e3
2 files changed
+4
-1
No files matched your search
@@ -544,6 +544,9 @@ static void uv__spawn_init_posix_spawn(void) {
|
||||
#else
|
||||
#if !defined(__linux__) && !defined(_AIX) && !defined(__PASE__)
|
||||
posix_spawn_works = 1;
|
||||
#elif defined(__clang_analyzer__)
|
||||
/* Avoid clang-analyzer warning about vfork(). */
|
||||
posix_spawn_works = 1;
|
||||
#elif !defined(__ANDROID__) && (!defined(__GLIBC__) || \
|
||||
((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 24))))
|
||||
pid_t pid;
|
||||
|
||||
@@ -1092,8 +1092,8 @@ static void uv__read(uv_stream_t* stream) {
|
||||
if (stream->read_cb != NULL) {
|
||||
uv__io_start(stream->loop, &stream->io_watcher, POLLIN);
|
||||
uv__stream_osx_interrupt_select(stream);
|
||||
stream->read_cb(stream, 0, &buf);
|
||||
}
|
||||
stream->read_cb(stream, 0, &buf);
|
||||
#if defined(__CYGWIN__) || defined(__MSYS__)
|
||||
} else if (errno == ECONNRESET && stream->type == UV_NAMED_PIPE) {
|
||||
uv__stream_eof(stream, &buf);
|
||||
|
||||
Reference in new issue
Block a user