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

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 9150ea0e95 arch_alarm: don't init local variable for fpu test case fail
9150ea0e95 is described below

commit 9150ea0e95c9ad4e6b2d9b3af44240799d0c241d
Author: zhangyuan21 <[email protected]>
AuthorDate: Tue Dec 6 20:00:17 2022 +0800

    arch_alarm: don't init local variable for fpu test case fail
    
    D16 register will be cleared when compiling with gcc on some boards.
    
    Signed-off-by: zhangyuan21 <[email protected]>
---
 drivers/timers/arch_alarm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/timers/arch_alarm.c b/drivers/timers/arch_alarm.c
index 85565c2a33..efdb63f3f0 100644
--- a/drivers/timers/arch_alarm.c
+++ b/drivers/timers/arch_alarm.c
@@ -319,7 +319,7 @@ int weak_function up_alarm_tick_start(clock_t ticks)
 
   if (g_oneshot_lower != NULL)
     {
-      clock_t now = 0;
+      clock_t now;
       clock_t delta;
 
       ONESHOT_TICK_CURRENT(g_oneshot_lower, &now);

Reply via email to