diff options
author | Austin Seipp <austin@well-typed.com> | 2014-10-17 11:58:07 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-10-17 11:58:07 -0500 |
commit | 1c35f9f1cb7a293da85d649904ce731a65824cfe (patch) | |
tree | cea645b04ac626aa1c8b362cc80e89fc4018f97c /rts/posix | |
parent | 0e2bd03b0dc21b16f3b53bbec47bbfd4aaad0756 (diff) | |
download | haskell-1c35f9f1cb7a293da85d649904ce731a65824cfe.tar.gz |
rts: fix unused parameter warning
Summary:
If `pthread_setname_np` is not available, then a regular
./validate will fail due to warnings; the `name` parameter to
`createOSThread` becomes unused.
Signed-off-by: Austin Seipp <austin@well-typed.com>
Test Plan: iiam
Reviewers: simonmar, nomeata, jstolarek, hvr
Reviewed By: nomeata, jstolarek, hvr
Subscribers: nomeata, thomie, carter, ezyang, simonmar
Differential Revision: https://phabricator.haskell.org/D344
Diffstat (limited to 'rts/posix')
-rw-r--r-- | rts/posix/OSThreads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c index fb6d9d4733..8c1beda5cf 100644 --- a/rts/posix/OSThreads.c +++ b/rts/posix/OSThreads.c @@ -129,7 +129,7 @@ shutdownThread(void) } int -createOSThread (OSThreadId* pId, char *name, +createOSThread (OSThreadId* pId, char *name STG_UNUSED, OSThreadProc *startProc, void *param) { int result = pthread_create(pId, NULL, (void *(*)(void *))startProc, param); |