[commit: ghc] master: Add /* fallthrough */ to fix -Wimplicit-fallthrough warning (5f15d53)
git at git.haskell.org
git at git.haskell.org
Thu May 17 10:22:56 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/5f15d53a98ad2f26465730d8c3463ccc58f6d94a/ghc
>---------------------------------------------------------------
commit 5f15d53a98ad2f26465730d8c3463ccc58f6d94a
Author: Simon Marlow <marlowsd at gmail.com>
Date: Thu May 17 09:04:05 2018 +0100
Add /* fallthrough */ to fix -Wimplicit-fallthrough warning
>---------------------------------------------------------------
5f15d53a98ad2f26465730d8c3463ccc58f6d94a
rts/sm/Scav.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/rts/sm/Scav.c b/rts/sm/Scav.c
index 5db0acb..770865c 100644
--- a/rts/sm/Scav.c
+++ b/rts/sm/Scav.c
@@ -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:
More information about the ghc-commits
mailing list