From 5d850fb1973b588fb31cf94e8221a89ff121614d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 15 Feb 2020 12:16:57 -0600 Subject: [PATCH] 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 4b5a2cb5575..0e87a37501e 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);