includes/rts: Drop trailing comma ghc-8.2.2-rc1
authorBen Gamari <ben@smart-cactus.org>
Fri, 8 Sep 2017 02:49:22 +0000 (22:49 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 29 Sep 2017 12:18:09 +0000 (08:18 -0400)
This trailing comma snuck in in a recent patch. There is nothing wrong with the
comma; it's perfectly valid C99, yet nevertheless Mac OS X's dtrace utility
chokes on it with,

    dtrace: failed to compile script rts/RtsProbes.d:
            "includes/rts/EventLogFormat.h", line 245: syntax error near "}"
    make[1]: *** [rts/dist/build/RtsProbes.h] Error 1

(cherry picked from commit be514a694f2cddbb1b23af971430364a223eb894)

includes/rts/EventLogFormat.h

index f47e3ea..70c1c8d 100644 (file)
@@ -240,7 +240,7 @@ typedef enum {
     HEAP_PROF_BREAKDOWN_TYPE_DESCR,
     HEAP_PROF_BREAKDOWN_RETAINER,
     HEAP_PROF_BREAKDOWN_BIOGRAPHY,
-    HEAP_PROF_BREAKDOWN_CLOSURE_TYPE,
+    HEAP_PROF_BREAKDOWN_CLOSURE_TYPE
 } HeapProfBreakdown;
 
 #if !defined(EVENTLOG_CONSTANTS_ONLY)