@@ -1013,7 +1013,9 @@ _dispatch_kevent_resume(dispatch_kevent_t dk, uint32_t new_flags,
10131013 return _dispatch_kevent_machport_resume (dk , new_flags , del_flags );
10141014 case DISPATCH_EVFILT_MACH_NOTIFICATION :
10151015 return _dispatch_kevent_mach_notify_resume (dk , new_flags , del_flags );
1016- #endif
1016+ #else
1017+ (void )new_flags ; (void )del_flags ;
1018+ #endif // HAVE_MACH
10171019 default :
10181020 if (dk -> dk_kevent .flags & EV_DELETE ) {
10191021 return 0 ;
@@ -1028,10 +1030,6 @@ _dispatch_kevent_resume(dispatch_kevent_t dk, uint32_t new_flags,
10281030 }
10291031 return r ;
10301032 }
1031- #if !HAVE_MACH
1032- (void )new_flags ;
1033- (void )del_flags ;
1034- #endif
10351033}
10361034
10371035static long
@@ -1879,7 +1877,7 @@ static void
18791877_dispatch_kevent_timer_set_delay (_dispatch_kevent_qos_s * ke , uint64_t delay ,
18801878 uint64_t leeway , uint64_t nows [])
18811879{
1882- // call to return nows[]
1880+ // call to update nows[]
18831881 _dispatch_source_timer_now (nows , DISPATCH_TIMER_KIND_WALL );
18841882 // adjust nsec based delay to msec based and ignore leeway
18851883 delay /= 1000000L ;
@@ -1890,7 +1888,6 @@ _dispatch_kevent_timer_set_delay(_dispatch_kevent_qos_s *ke, uint64_t delay,
18901888}
18911889
18921890#else
1893-
18941891static void
18951892_dispatch_kevent_timer_set_delay (_dispatch_kevent_qos_s * ke , uint64_t delay ,
18961893 uint64_t leeway , uint64_t nows [])
@@ -1904,7 +1901,7 @@ _dispatch_kevent_timer_set_delay(_dispatch_kevent_qos_s *ke, uint64_t delay,
19041901 ke -> ext [1 ] = leeway ;
19051902 }
19061903}
1907- #endif
1904+ #endif // __linux__
19081905
19091906static bool
19101907_dispatch_timers_program2 (uint64_t nows [], _dispatch_kevent_qos_s * ke ,
@@ -4791,6 +4788,7 @@ _dispatch_mach_debug_attr(dispatch_mach_t dm, char* buf, size_t bufsiz)
47914788 dm -> dm_refs -> dm_sending , dm -> dm_refs -> dm_disconnect_cnt ,
47924789 (bool )(dm -> ds_atomic_flags & DSF_CANCELED ));
47934790}
4791+
47944792size_t
47954793_dispatch_mach_debug (dispatch_mach_t dm , char * buf , size_t bufsiz )
47964794{
@@ -4803,7 +4801,7 @@ _dispatch_mach_debug(dispatch_mach_t dm, char* buf, size_t bufsiz)
48034801 offset += dsnprintf (& buf [offset ], bufsiz - offset , "}" );
48044802 return offset ;
48054803}
4806- #endif
4804+ #endif // HAVE_MACH
48074805
48084806#if DISPATCH_DEBUG
48094807DISPATCH_NOINLINE
0 commit comments