You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/01/24 22:06:25 UTC

[incubator-nuttx] branch master updated: Fix implicit definition warnings do to missing inclusion of nuttx/time.h (#162)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new b46b76c  Fix implicit definition warnings do to missing inclusion of nuttx/time.h (#162)
b46b76c is described below

commit b46b76c95646061e13c87318d344088b828ac8cf
Author: patacongo <sp...@yahoo.com>
AuthorDate: Fri Jan 24 16:06:19 2020 -0600

    Fix implicit definition warnings do to missing inclusion of nuttx/time.h (#162)
    
    Recent changes removed CONFIG_TIME_ENHANCED and unmasked some warnings.  These warnings were caused by nuttx/time.h not being included by files that now referenced clock_daysbeforemonth() and clock_isleapyear().
    
    This commit adds those missing inclusions and eliminates the warnings.
    
    Co-authored-by: Gregory Nutt <gn...@nuttx.org>
---
 arch/arm/src/stm32/stm32_rtcc.c       | 1 +
 arch/arm/src/stm32/stm32f40xxx_rtcc.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm/src/stm32/stm32_rtcc.c b/arch/arm/src/stm32/stm32_rtcc.c
index 5ad90eb..595bfcf 100644
--- a/arch/arm/src/stm32/stm32_rtcc.c
+++ b/arch/arm/src/stm32/stm32_rtcc.c
@@ -46,6 +46,7 @@
 
 #include <nuttx/arch.h>
 #include <nuttx/irq.h>
+#include <nuttx/time.h>
 
 #include <arch/board/board.h>
 
diff --git a/arch/arm/src/stm32/stm32f40xxx_rtcc.c b/arch/arm/src/stm32/stm32f40xxx_rtcc.c
index e9dc53e..4eb4d9a 100644
--- a/arch/arm/src/stm32/stm32f40xxx_rtcc.c
+++ b/arch/arm/src/stm32/stm32f40xxx_rtcc.c
@@ -48,6 +48,7 @@
 
 #include <nuttx/arch.h>
 #include <nuttx/irq.h>
+#include <nuttx/time.h>
 
 #include "up_arch.h"