[commit: ghc] master: rts: fix unused parameter warning (1c35f9f)

git at git.haskell.org git at git.haskell.org
Sat Oct 18 12:34:39 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1c35f9f1cb7a293da85d649904ce731a65824cfe/ghc

>---------------------------------------------------------------

commit 1c35f9f1cb7a293da85d649904ce731a65824cfe
Author: Austin Seipp <austin at well-typed.com>
Date:   Fri Oct 17 11:58:07 2014 -0500

    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 at 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


>---------------------------------------------------------------

1c35f9f1cb7a293da85d649904ce731a65824cfe
 rts/posix/OSThreads.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c
index fb6d9d4..8c1beda 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);



More information about the ghc-commits mailing list