From 0f0a4b1452198160ae38be3d26ebd555224e3fbc Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 6 May 2023 22:26:06 +0200 Subject: [PATCH] target: espressif: apptrace: declare a local function as static The function esp32_cmd_apptrace_generic() is not used outside the file. Declare it as static. Detected through 'sparse' tool. Change-Id: I08c6b92fb01594320bc3ae6b16067ac4eb51ca12 Signed-off-by: Antonio Borneo Reviewed-on: https://review.openocd.org/c/openocd/+/7676 Tested-by: jenkins --- src/target/espressif/esp32_apptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/espressif/esp32_apptrace.c b/src/target/espressif/esp32_apptrace.c index 0c510ffbf8..427f011700 100644 --- a/src/target/espressif/esp32_apptrace.c +++ b/src/target/espressif/esp32_apptrace.c @@ -1431,7 +1431,7 @@ static int esp32_sysview_stop(struct esp32_apptrace_cmd_ctx *ctx) return res; } -int esp32_cmd_apptrace_generic(struct command_invocation *cmd, int mode, const char **argv, int argc) +static int esp32_cmd_apptrace_generic(struct command_invocation *cmd, int mode, const char **argv, int argc) { static struct esp32_apptrace_cmd_ctx s_at_cmd_ctx; struct esp32_apptrace_cmd_data *cmd_data; -- 2.30.2