[prev in list] [next in list] [prev in thread] [next in thread]
List: openocd-development
Subject: [PATCH]: 840f5023ee target/breakpoints: make breakpoint_watchpoint_remove_all static
From: gerrit () openocd ! org
Date: 2023-10-28 19:01:46
Message-ID: 20231028190146.6BEE4FD () openocd ! org
[Download RAW message or body]
This is an automated email from Gerrit.
"Erhan Kurubas <erhan.kurubas@espressif.com>" just uploaded a new patch set to \
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7955
-- gerrit
commit 840f5023ee85f9d58a5972fee72f0997ec543f55
Author: Erhan Kurubas <erhan.kurubas@espressif.com>
Date: Sat Oct 28 20:58:08 2023 +0200
target/breakpoints: make breakpoint_watchpoint_remove_all static
Fixes below Sparse tool warning.
warning: symbol 'breakpoint_watchpoint_remove_all' was not declared.
Should it be static?
Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com>
Change-Id: I4af1d5aa54abcb45f746b877513ba0b5fccbeb47
diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c
index 07d0a73710..d9c12f523d 100644
--- a/src/target/breakpoints.c
+++ b/src/target/breakpoints.c
@@ -425,7 +425,7 @@ static int watchpoint_remove_all_internal(struct target *target)
return retval;
}
-int breakpoint_watchpoint_remove_all(struct target *target, enum \
breakpoint_watchpoint bp_wp) +static int breakpoint_watchpoint_remove_all(struct \
target *target, enum breakpoint_watchpoint bp_wp) {
assert(bp_wp == BREAKPOINT || bp_wp == WATCHPOINT);
int retval = ERROR_OK;
--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic