Stifle warning about unused return value
authorbenl@cse.unsw.edu.au <unknown>
Wed, 3 Feb 2010 02:55:37 +0000 (02:55 +0000)
committerbenl@cse.unsw.edu.au <unknown>
Wed, 3 Feb 2010 02:55:37 +0000 (02:55 +0000)
System/CPUTime.hsc

index 2dbc896..c2faa1c 100644 (file)
@@ -108,7 +108,7 @@ foreign import ccall unsafe getrusage :: CInt -> Ptr CRUsage -> IO CInt
 #else
 # if defined(HAVE_TIMES)
     allocaBytes (#const sizeof(struct tms)) $ \ p_tms -> do
-    times p_tms
+    _ <- times p_tms
     u_ticks  <- (#peek struct tms,tms_utime) p_tms :: IO CClock
     s_ticks  <- (#peek struct tms,tms_stime) p_tms :: IO CClock
     return (( (realToInteger u_ticks + realToInteger s_ticks) * 1000000000000)