summaryrefslogtreecommitdiff
path: root/src/cpu.c
diff options
context:
space:
mode:
authorYuqiang Wang <[email protected]>2024-02-21 11:45:04 +0800
committerGitHub <[email protected]>2024-02-20 22:45:04 -0500
commitc6bdee3c503a287a0967fd0e3cb6b7a1eb6d0b5e (patch)
tree884d88b13750c2a0aa50d7cd7da495730f511605 /src/cpu.c
parent52a5b5cc48d9ca784f1728f97e2b8b9abc82aa0e (diff)
[ci] open ci check with function declaration warning (#8546)
Diffstat (limited to 'src/cpu.c')
-rw-r--r--src/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu.c b/src/cpu.c
index 686b67a4ea..bb058d6d67 100644
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -94,7 +94,7 @@ RTM_EXPORT(rt_spin_unlock)
*/
rt_base_t rt_spin_lock_irqsave(struct rt_spinlock *lock)
{
- unsigned long level;
+ rt_base_t level;
level = rt_hw_local_irq_disable();
rt_enter_critical();