summaryrefslogtreecommitdiff
path: root/rts/sm/GCThread.h
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2013-06-21 00:12:20 -0500
committerAustin Seipp <aseipp@pobox.com>2013-06-21 00:19:33 -0500
commitfe6db466ec0ae56d33d0fdecc4694d63fed61fa8 (patch)
treebb9dcceab41f594d4302386807b377f69d97f918 /rts/sm/GCThread.h
parenteeeec4f2c34d7bc7ca2882550a181bf80368d32d (diff)
downloadhaskell-fe6db466ec0ae56d33d0fdecc4694d63fed61fa8.tar.gz
Ensure gc_thread->wakeup is of type StgWord8.
rtsBool is defined to only have two inhabitants, which are true (1) and false (0) But the wakeup flag is set to 4 possible values, outside the range of rtsBool. This leads Clang to warn about tautological comparisons. Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'rts/sm/GCThread.h')
-rw-r--r--rts/sm/GCThread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/GCThread.h b/rts/sm/GCThread.h
index 7aacb4eb51..748b0687fa 100644
--- a/rts/sm/GCThread.h
+++ b/rts/sm/GCThread.h
@@ -122,7 +122,7 @@ typedef struct gc_thread_ {
OSThreadId id; // The OS thread that this struct belongs to
SpinLock gc_spin;
SpinLock mut_spin;
- volatile rtsBool wakeup;
+ volatile StgWord8 wakeup;
#endif
nat thread_index; // a zero based index identifying the thread
rtsBool idle; // sitting out of this GC cycle