1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Remove 'extern' from 'scm_i_current_thread' definition, except on macOS.

This is a followup to f859e0f58b, which
led to warnings on GNU/Linux:

  threads.c:358:43: warning: 'scm_i_current_thread' initialized and declared 'extern'

* libguile/threads.c (scm_i_current_thread): Make 'SCM_INTERNAL'
conditional.
This commit is contained in:
Ludovic Courtès 2023-01-20 10:04:48 +01:00
parent f57f931e6a
commit 80bf3f48b4

View file

@ -355,8 +355,10 @@ scm_i_pthread_key_t scm_i_thread_key;
itself in TLS (rather than a pointer to some malloc'd memory) is not
possible since thread objects may live longer than the actual thread they
represent. */
/* SCM_INTERNAL fixes https://debbugs.gnu.org/60234 */
SCM_INTERNAL SCM_THREAD_LOCAL scm_thread *scm_i_current_thread = NULL;
# ifdef __APPLE__ /* XXX: hack to address <https://bugs.gnu.org/60234> */
SCM_INTERNAL
# endif
SCM_THREAD_LOCAL scm_thread *scm_i_current_thread = NULL;
#endif /* SCM_HAVE_THREAD_STORAGE_CLASS */