src: fix clang15 compiler warnings
Below warnings are fixed. 1- A function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] 2- error: variable set but not used [-Werror,-Wunused-but-set-variable] Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com> Change-Id: I1cf14b8e5e3e732ebc9cacc4b1cb9009276a8ea9 Reviewed-on: https://review.openocd.org/c/openocd/+/7569 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
babec0fafa
commit
bb073f897c
@@ -2187,7 +2187,6 @@ int riscv_openocd_poll(struct target *target)
|
||||
int halted_hart = -1;
|
||||
|
||||
if (target->smp) {
|
||||
unsigned halts_discovered = 0;
|
||||
unsigned should_remain_halted = 0;
|
||||
unsigned should_resume = 0;
|
||||
struct target_list *list;
|
||||
@@ -2203,7 +2202,6 @@ int riscv_openocd_poll(struct target *target)
|
||||
t->debug_reason = DBG_REASON_NOTHALTED;
|
||||
break;
|
||||
case RPH_DISCOVERED_HALTED:
|
||||
halts_discovered++;
|
||||
t->state = TARGET_HALTED;
|
||||
enum riscv_halt_reason halt_reason =
|
||||
riscv_halt_reason(t, r->current_hartid);
|
||||
|
||||
Reference in New Issue
Block a user