You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2020/12/23 00:21:36 UTC

[mynewt-core] 01/04: pic32: Remove compilation warning

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit e26a63f66a9d2d336ae6a49eae4a93c092e785ec
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Mon Dec 14 16:15:32 2020 +0100

    pic32: Remove compilation warning
    
    timer_handler used to have prototype in header but it was removed
    some time ago.
    This adds local prototype and also changes function scope to file.
---
 kernel/os/src/arch/pic32/os_arch_pic32.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel/os/src/arch/pic32/os_arch_pic32.c b/kernel/os/src/arch/pic32/os_arch_pic32.c
index f57c964..3f4b0ea 100644
--- a/kernel/os/src/arch/pic32/os_arch_pic32.c
+++ b/kernel/os/src/arch/pic32/os_arch_pic32.c
@@ -60,6 +60,8 @@ struct os_task *g_fpu_task;
 
 struct os_task_t* g_fpu_user;
 
+static void timer_handler(void);
+
 /* core timer interrupt */
 void __attribute__((interrupt(IPL1AUTO),
 vector(_CORE_TIMER_VECTOR))) isr_core_timer(void)
@@ -74,7 +76,7 @@ void
 __attribute__((interrupt(IPL1AUTO), vector(_CORE_SOFTWARE_0_VECTOR)))
 isr_sw0(void);
 
-void
+static void
 timer_handler(void)
 {
     os_time_advance(1);