Re: [PATCH] target/ppc/excp_helper: Add a fallthrough for fix compiler warning

2020-10-27 Thread David Gibson
On Wed, Oct 28, 2020 at 01:51:07PM +0800, Chen Qun wrote: > When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: > ../target/ppc/excp_helper.c: In function ‘powerpc_excp’: > ../target/ppc/excp_helper.c:529:13: warning: this statement may fall through > [-Wimplicit-fallthro

[PATCH] target/ppc/excp_helper: Add a fallthrough for fix compiler warning

2020-10-27 Thread Chen Qun
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: ../target/ppc/excp_helper.c: In function ‘powerpc_excp’: ../target/ppc/excp_helper.c:529:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 529 | msr |= env->error_code; |