You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/02/29 08:52:01 UTC

[incubator-nuttx-apps] branch master updated: testing: ostest: Fix a warning in cond.c for non-SMP configurations.

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/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new dd90592  testing: ostest: Fix a warning in cond.c for non-SMP configurations.
dd90592 is described below

commit dd9059203daf12face37491f24c97fd4f2f3f03f
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Sat Feb 29 14:41:50 2020 +0900

    testing: ostest: Fix a warning in cond.c for non-SMP configurations.
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 testing/ostest/cond.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/ostest/cond.c b/testing/ostest/cond.c
index 5a38066..f408345 100644
--- a/testing/ostest/cond.c
+++ b/testing/ostest/cond.c
@@ -181,7 +181,7 @@ static void *thread_signaler(void *parameter)
           signaler_nerrors++;
         }
 
-#if CONFIG_SMP_NCPUS > 1
+#if defined(CONFIG_SMP) && (CONFIG_SMP_NCPUS > 1)
       /* Workaround for SMP:
        * In multi-core environment, thread_signaler would be excecuted prior
        * to the thread_waiter, even though priority of thread_signaler is