From 230416f8b6f6731064115a2905ad354e27b7d605 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 14 May 2017 20:22:37 +0100 Subject: rts: annotate switch/case with '/* fallthrough */' Fixes gcc-7.1.0 warnings of form: rts/sm/Scav.c:559:9: error: error: this statement may fall through [-Werror=implicit-fallthrough=] scavenge_fun_srt(info); ^~~~~~~~~~~~~~~~~~~~~~ Many of places are indeed unobvious and some are already annotated by comments. Signed-off-by: Sergei Trofimovich --- rts/sm/Sanity.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rts/sm/Sanity.c') diff --git a/rts/sm/Sanity.c b/rts/sm/Sanity.c index 6bfa1cb494..53b101024a 100644 --- a/rts/sm/Sanity.c +++ b/rts/sm/Sanity.c @@ -102,6 +102,7 @@ checkStackFrame( StgPtr c ) case UPDATE_FRAME: ASSERT(LOOKS_LIKE_CLOSURE_PTR(((StgUpdateFrame*)c)->updatee)); + /* fallthrough */ case ATOMICALLY_FRAME: case CATCH_RETRY_FRAME: case CATCH_STM_FRAME: -- cgit v1.2.1