Skip to content

Commit

Permalink
nuttx/tls: remove the tls warning since pthread could be disabled
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
anchao authored and jlaitine committed May 16, 2024
1 parent 34c17a5 commit 2ea821a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/nuttx/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#endif

#ifndef CONFIG_TLS_NELEM
# warning CONFIG_TLS_NELEM is not defined
# define CONFIG_TLS_NELEM 0
#endif

Expand Down

0 comments on commit 2ea821a

Please sign in to comment.