projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some "warn-unused-do-bind" warnings where we want to ignore the value
[ghc-base.git]
/
Control
/
Concurrent
/
SampleVar.hs
diff --git
a/Control/Concurrent/SampleVar.hs
b/Control/Concurrent/SampleVar.hs
index
bdf5eac
..
a76346f
100644
(file)
--- a/
Control/Concurrent/SampleVar.hs
+++ b/
Control/Concurrent/SampleVar.hs
@@
-69,7
+69,7
@@
emptySampleVar :: SampleVar a -> IO ()
emptySampleVar v = do
(readers, var) <- takeMVar v
if readers > 0 then do
- takeMVar var
+ _ <- takeMVar var
putMVar v (0,var)
else
putMVar v (readers,var)