From: Chen Qun Date: Fri, 11 Dec 2020 15:24:23 +0000 (+0100) Subject: target/sparc/win_helper: silence the compiler warnings X-Git-Tag: v6.0.0-rc0~173^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9cf5a9cf60a3c5271dee05b6a81a05fb45bee622;p=thirdparty%2Fqemu.git target/sparc/win_helper: silence the compiler warnings When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: target/sparc/win_helper.c: In function ‘get_gregset’: target/sparc/win_helper.c:304:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 304 | trace_win_helper_gregset_error(pstate); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ target/sparc/win_helper.c:306:5: note: here 306 | case 0: | ^~~~ Add the corresponding "fall through" comment to fix it. Reported-by: Euler Robot Signed-off-by: Chen Qun Signed-off-by: Thomas Huth Reviewed-by: Artyom Tarasenko Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20201211152426.350966-10-thuth@redhat.com> Signed-off-by: Thomas Huth --- diff --git a/target/sparc/win_helper.c b/target/sparc/win_helper.c index 5b57892a10e..3a7c0ff943d 100644 --- a/target/sparc/win_helper.c +++ b/target/sparc/win_helper.c @@ -302,7 +302,7 @@ static inline uint64_t *get_gregset(CPUSPARCState *env, uint32_t pstate) switch (pstate) { default: trace_win_helper_gregset_error(pstate); - /* pass through to normal set of global registers */ + /* fall through to normal set of global registers */ case 0: return env->bgregs; case PS_AG: