fix warnings
authorSimon Marlow <marlowsd@gmail.com>
Wed, 27 Jan 2010 13:30:40 +0000 (13:30 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 27 Jan 2010 13:30:40 +0000 (13:30 +0000)
rts/ghc.mk
rts/win32/Ticker.c

index e71473d..7ae3f84 100644 (file)
@@ -315,7 +315,6 @@ rts/RetainerSet_CC_OPTS += -Wno-format
 # On Windows:
 rts/win32/ConsoleHandler_CC_OPTS += -w
 rts/win32/ThrIOManager_CC_OPTS += -w
-rts/win32/Ticker_CC_OPTS += -w
 # The above warning supression flags are a temporary kludge.
 # While working on this module you are encouraged to remove it and fix
 # any warnings in the module. See
index c1e20fb..6be1b3a 100644 (file)
@@ -40,7 +40,7 @@ WINAPI
 TimerProc(PVOID param)
 {
   int ms = (int)param;
-  DWORD waitRes;
+  DWORD waitRes = 0;
   
   /* interpret a < 0 timeout period as 'instantaneous' */ 
   if (ms < 0) ms = 0;