From: Simon Marlow Date: Mon, 3 Aug 2009 21:45:45 +0000 (+0000) Subject: use C99-style array initialisers X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=c123d6799b1f777a2c19ff2e10b93191d2ad7797 use C99-style array initialisers --- diff --git a/rts/Schedule.c b/rts/Schedule.c index 70ddf09..dd33f6f 100644 --- a/rts/Schedule.c +++ b/rts/Schedule.c @@ -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