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/02/15 18:47:08 UTC

[incubator-nuttx] branch master updated: arch/sim/src/sim/up_oneshot.c: Eliminate warning from build test.

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 5d850fb  arch/sim/src/sim/up_oneshot.c:  Eliminate warning from build test.
5d850fb is described below

commit 5d850fb1973b588fb31cf94e8221a89ff121614d
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Sat Feb 15 12:16:57 2020 -0600

    arch/sim/src/sim/up_oneshot.c:  Eliminate warning from build test.
---
 arch/sim/src/sim/up_oneshot.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/sim/src/sim/up_oneshot.c b/arch/sim/src/sim/up_oneshot.c
index 4b5a2cb..0e87a37 100644
--- a/arch/sim/src/sim/up_oneshot.c
+++ b/arch/sim/src/sim/up_oneshot.c
@@ -288,8 +288,10 @@ static int sim_cancel(FAR struct oneshot_lowerhalf_s *lower,
 static int sim_current(FAR struct oneshot_lowerhalf_s *lower,
                        FAR struct timespec *ts)
 {
+#ifdef CONFIG_DEBUG_ASSERTIONS
   FAR struct sim_oneshot_lowerhalf_s *priv =
     (FAR struct sim_oneshot_lowerhalf_s *)lower;
+#endif
 
   DEBUGASSERT(priv != NULL && ts != NULL);