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:
Erhan Kurubas
2023-04-02 00:26:51 +02:00
committed by Antonio Borneo
parent babec0fafa
commit bb073f897c
4 changed files with 4 additions and 12 deletions

View File

@@ -1940,13 +1940,13 @@ static int target_call_timer_callbacks_check_time(int checktime)
return ERROR_OK;
}
int target_call_timer_callbacks()
int target_call_timer_callbacks(void)
{
return target_call_timer_callbacks_check_time(1);
}
/* invoke periodic callbacks immediately */
int target_call_timer_callbacks_now()
int target_call_timer_callbacks_now(void)
{
return target_call_timer_callbacks_check_time(0);
}