From 53004ca5f8eb94a4ec07acfb082940bb7a071549 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 17 Feb 2016 23:51:11 +0300 Subject: [PATCH] Fix 'unreachable code' compiler warning in GC_dirty_init (Solaris) (fix commit ba593b45) * os_dep.c (GC_dirty_init): Remove duplicate check for GC_proc_fd (if PROC_VDB). --- os_dep.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/os_dep.c b/os_dep.c index 92de21dd..2d014023 100644 --- a/os_dep.c +++ b/os_dep.c @@ -3639,10 +3639,6 @@ GC_INNER void GC_dirty_init(void) ABORT("/proc open failed"); } syscall(SYS_fcntl, GC_proc_fd, F_SETFD, FD_CLOEXEC); - if (GC_proc_fd < 0) { - WARN("/proc ioctl(PIOCOPENPD) failed", 0); - return; - } GC_dirty_maintained = TRUE; GC_proc_buf = GC_scratch_alloc(GC_proc_buf_size); -- 2.40.0