diff options
author | Ian Lynagh <igloo@earth.li> | 2011-06-24 20:51:13 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-06-25 19:16:32 +0100 |
commit | 0a6f26f6d29c8762b254e2f1040fce5c3571feea (patch) | |
tree | 6706444dab64cb0c2d6143ecb17db0e9ca2fc0cd /rts/Task.c | |
parent | 12b93887fd8b6a185b1bff994c865c897d22a6a6 (diff) | |
download | haskell-0a6f26f6d29c8762b254e2f1040fce5c3571feea.tar.gz |
Fix gcc 4.6 warnings; fixes #5176
Based on a patch from David Terei.
Some parts are a little ugly (e.g. defining things that only ASSERTs
use only when DEBUG is defined), so we might want to tweak things a
little.
I've also turned off -Werror for didn't-inline warnings, as we now
get a few such warnings.
Diffstat (limited to 'rts/Task.c')
-rw-r--r-- | rts/Task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/Task.c b/rts/Task.c index e77a030f39..cf406b2abe 100644 --- a/rts/Task.c +++ b/rts/Task.c @@ -347,8 +347,8 @@ taskDoneGC (Task *task, Ticks cpu_time, Ticks elapsed_time) void workerTaskStop (Task *task) { - OSThreadId id; - id = osThreadId(); + DEBUG_ONLY( OSThreadId id ); + DEBUG_ONLY( id = osThreadId() ); ASSERT(task->id == id); ASSERT(myTask() == task); |