From: Ivan Maidanski Date: Wed, 17 Feb 2016 20:51:11 +0000 (+0300) Subject: Fix 'unreachable code' compiler warning in GC_dirty_init (Solaris) X-Git-Tag: gc7_4_4~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53004ca5f8eb94a4ec07acfb082940bb7a071549;p=gc 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). --- 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);