From 07d84bca32702f1c8405f7dc20dc18cc448ce39d Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Mon, 5 Sep 2022 23:56:18 +0200 Subject: target: make local symbols static Symbols that are not exported should be declared as static. Change-Id: I2475524f4c14520e3163572560f4a9f276356ed5 Signed-off-by: Antonio Borneo Reviewed-on: https://review.openocd.org/c/openocd/+/7168 Tested-by: jenkins Reviewed-by: Tomas Vanek --- src/target/cortex_m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/cortex_m.c') diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 8e9264b..d0c6376 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -1914,7 +1914,7 @@ int cortex_m_remove_watchpoint(struct target *target, struct watchpoint *watchpo return ERROR_OK; } -int cortex_m_hit_watchpoint(struct target *target, struct watchpoint **hit_watchpoint) +static int cortex_m_hit_watchpoint(struct target *target, struct watchpoint **hit_watchpoint) { if (target->debug_reason != DBG_REASON_WATCHPOINT) return ERROR_FAIL; -- cgit v1.1