libuv: Fix clang-analyzer diagnostics

This commit is contained in:
Brad King committed 2026-10-08 09:01:28 -04:00
1 parent 65bf6958a3
commit 8411f680e3
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -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;
+1 -1
View File
@@ -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);