use C99-style array initialisers
authorSimon Marlow <marlowsd@gmail.com>
Mon, 3 Aug 2009 21:45:45 +0000 (21:45 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 3 Aug 2009 21:45:45 +0000 (21:45 +0000)
rts/Schedule.c

index 70ddf09..dd33f6f 100644 (file)
@@ -174,12 +174,12 @@ static void deleteThread_(Capability *cap, StgTSO *tso);
 
 #ifdef DEBUG
 static char *whatNext_strs[] = {
-  "(unknown)",
-  "ThreadRunGHC",
-  "ThreadInterpret",
-  "ThreadKilled",
-  "ThreadRelocated",
-  "ThreadComplete"
+  [0]               = "(unknown)",
+  [ThreadRunGHC]    = "ThreadRunGHC",
+  [ThreadInterpret] = "ThreadInterpret",
+  [ThreadKilled]    = "ThreadKilled",
+  [ThreadRelocated] = "ThreadRelocated",
+  [ThreadComplete]  = "ThreadComplete"
 };
 #endif