rts: fix unused parameter warning
authorAustin Seipp <austin@well-typed.com>
Fri, 17 Oct 2014 16:58:07 +0000 (11:58 -0500)
committerAustin Seipp <austin@well-typed.com>
Fri, 17 Oct 2014 16:58:07 +0000 (11:58 -0500)
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

rts/posix/OSThreads.c

index fb6d9d4..8c1beda 100644 (file)
@@ -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);