]> git.sur5r.net Git - openocd/commit
target/riscv: fix compile error with gcc 8.1.1
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 25 Jul 2018 20:51:51 +0000 (22:51 +0200)
committerPaul Fertser <fercerpav@gmail.com>
Wed, 1 Aug 2018 07:26:44 +0000 (08:26 +0100)
commitd537cce7ef49bf2f4bc81cf016f784a9adf2537a
tree405f788bec9f130568b7d08beefdd1a48dd2c6b6
parentc8c778882570c36ff51b83b9c7d1e575566bc4ce
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 <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/4618
Tested-by: jenkins
Reviewed-by: Jiri Kastner <cz172638@gmail.com>
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
Reviewed-by: Tim Newsome <tim@sifive.com>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/target/riscv/riscv-011.c