From: OpenOCD-Gerrit <ope...@us...> - 2018-08-01 07:28:18
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via d537cce7ef49bf2f4bc81cf016f784a9adf2537a (commit) from c8c778882570c36ff51b83b9c7d1e575566bc4ce (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d537cce7ef49bf2f4bc81cf016f784a9adf2537a Author: Antonio Borneo <bor...@gm...> Date: Wed Jul 25 22:51:51 2018 +0200 target/riscv: fix compile error with gcc 8.1.1 Fix compile error: src/target/riscv/riscv-011.c: In function âslot_offsetâ: src/target/riscv/riscv-011.c:238:4: error: this statement may fall through [-Werror=implicit-fallthrough=] switch (slot) { ^~~~~~ src/target/riscv/riscv-011.c:243:3: note: here case 64: ^~~~ Fixes: a51ab8ddf63a ("Add RISC-V support.") Change-Id: I7fa86b305bd90cc590fd4359c3698632d44712e5 Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: http://openocd.zylin.com/4618 Tested-by: jenkins Reviewed-by: Jiri Kastner <cz1...@gm...> Reviewed-by: Oleksij Rempel <li...@re...> Reviewed-by: Tim Newsome <ti...@si...> Reviewed-by: Paul Fertser <fer...@gm...> diff --git a/src/target/riscv/riscv-011.c b/src/target/riscv/riscv-011.c index f2a68698b..498da5ad5 100644 --- a/src/target/riscv/riscv-011.c +++ b/src/target/riscv/riscv-011.c @@ -240,6 +240,7 @@ static unsigned int slot_offset(const struct target *target, slot_t slot) case SLOT1: return 5; case SLOT_LAST: return info->dramsize-1; } + break; case 64: switch (slot) { case SLOT0: return 4; ----------------------------------------------------------------------- Summary of changes: src/target/riscv/riscv-011.c | 1 + 1 file changed, 1 insertion(+) hooks/post-receive -- Main OpenOCD repository |