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 2024/02/27 05:21:59 UTC

(nuttx) branch master updated: nuttx/tls: remove the tls warning since pthread could be disabled

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 17198594a8 nuttx/tls: remove the tls warning since pthread could be disabled
17198594a8 is described below

commit 17198594a846d7ec8a2d57f17a6c21523a92f2de
Author: chao an <an...@lixiang.com>
AuthorDate: Tue Feb 27 09:12:47 2024 +0800

    nuttx/tls: remove the tls warning since pthread could be disabled
    
    include/nuttx/tls.h:52:4: warning: #warning CONFIG_TLS_NELEM is not defined [-Wcpp]
       52 | #  warning CONFIG_TLS_NELEM is not defined
          |    ^~~~~~~
    In file included from include/nuttx/sched.h:48,
                     from include/nuttx/arch.h:87,
                     from include/nuttx/userspace.h:35,
                     from include/nuttx/mm/mm.h:30,
                     from include/nuttx/kmalloc.h:34,
                     from sim_bringup.c:33:
    include/nuttx/tls.h:52:4: warning: #warning CONFIG_TLS_NELEM is not defined [-Wcpp]
       52 | #  warning CONFIG_TLS_NELEM is not defined
          |    ^~~~~~~
    
    Signed-off-by: chao an <an...@lixiang.com>
---
 include/nuttx/tls.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/nuttx/tls.h b/include/nuttx/tls.h
index 8b685a456c..1e8e4724a8 100644
--- a/include/nuttx/tls.h
+++ b/include/nuttx/tls.h
@@ -48,7 +48,6 @@
 #endif
 
 #ifndef CONFIG_TLS_NELEM
-#  warning CONFIG_TLS_NELEM is not defined
 #  define CONFIG_TLS_NELEM 0
 #endif