Add /* fallthrough */ to fix -Wimplicit-fallthrough warning
authorSimon Marlow <marlowsd@gmail.com>
Thu, 17 May 2018 08:04:05 +0000 (09:04 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 17 May 2018 10:21:11 +0000 (11:21 +0100)
rts/sm/Scav.c

index 5db0acb..770865c 100644 (file)
@@ -1722,9 +1722,11 @@ scavenge_static(void)
 
     case FUN_STATIC:
       scavenge_fun_srt(info);
-      // fallthrough: a FUN_STATIC can also be an SRT, so it may have pointer
-      // fields.  See Note [SRTs] in CmmBuildInfoTables, specifically the [FUN]
-      // optimisation.
+      /* fallthrough */
+
+      // a FUN_STATIC can also be an SRT, so it may have pointer
+      // fields.  See Note [SRTs] in CmmBuildInfoTables, specifically
+      // the [FUN] optimisation.
 
     case CONSTR:
     case CONSTR_NOCAF: