[Git][ghc/ghc][ghc-8.10] rts: Fix unused variable warning on Darwin
Ben Gamari
gitlab at gitlab.haskell.org
Sun Aug 9 20:27:58 UTC 2020
Ben Gamari pushed to branch ghc-8.10 at Glasgow Haskell Compiler / GHC
Commits:
82f15edc by Ben Gamari at 2020-08-09T16:27:21-04:00
rts: Fix unused variable warning on Darwin
- - - - -
1 changed file:
- rts/posix/GetTime.c
Changes:
=====================================
rts/posix/GetTime.c
=====================================
@@ -71,7 +71,6 @@ Time getCurrentThreadCPUTime(void)
// support clock_getcpuclockid. Hence we prefer to use the Darwin-specific
// path on Darwin, even if clock_gettime is available.
#if defined(darwin_HOST_OS)
- mach_port_t port = pthread_mach_thread_np(osThreadId());
thread_basic_info_data_t info = { 0 };
mach_msg_type_number_t info_count = THREAD_BASIC_INFO_COUNT;
kern_return_t kern_err = thread_info(mach_thread_self(), THREAD_BASIC_INFO,
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/82f15edc506cdf91c63c2351603c8f0fb0379914
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/82f15edc506cdf91c63c2351603c8f0fb0379914
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200809/5fe2e5f4/attachment.html>
More information about the ghc-commits
mailing list