unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [FIX] guile 1.8.6 is broken in libguile/scmsigs.c, 206
@ 2009-01-22  2:48 Roland Haeder
  2009-01-22 20:44 ` Neil Jerram
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Haeder @ 2009-01-22  2:48 UTC (permalink / raw)
  To: bug-guile

Hi,

in the above mentioned line you should better type:
static scm_i_pthread_once_t once = {SCM_I_PTHREAD_ONCE_INIT};

That braces around the initializer are absend which is also my C
compiler is complaining about.

If I found more, I let you know. :)

Regards,
Roland




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FIX] guile 1.8.6 is broken in libguile/scmsigs.c, 206
  2009-01-22  2:48 [FIX] guile 1.8.6 is broken in libguile/scmsigs.c, 206 Roland Haeder
@ 2009-01-22 20:44 ` Neil Jerram
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Jerram @ 2009-01-22 20:44 UTC (permalink / raw)
  To: Roland Haeder; +Cc: bug-guile

Hi Roland ...

2009/1/22 Roland Haeder <r.haeder@web.de>:
> Hi,
>
> in the above mentioned line you should better type:
> static scm_i_pthread_once_t once = {SCM_I_PTHREAD_ONCE_INIT};
>
> That braces around the initializer are absend which is also my C
> compiler is complaining about.

But please see the definitions of SCM_I_PTHREAD_ONCE_INIT in pthread-threads.h:

#if SCM_NEED_BRACES_ON_PTHREAD_ONCE_INIT
#define SCM_I_PTHREAD_ONCE_INIT             { PTHREAD_ONCE_INIT }
#else
#define SCM_I_PTHREAD_ONCE_INIT             PTHREAD_ONCE_INIT
#endif

And we have stuff in configure.in that is supposed to determine
SCM_NEED_BRACES_ON_PTHREAD_ONCE_INIT correctly.  So the extra set of
braces that you have suggested should not be needed, and we should
instead investigate why the configure.in stuff isn't working.

Is there anything less usual about your platform and/or compiler?

Regards,
       Neil




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-22 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22  2:48 [FIX] guile 1.8.6 is broken in libguile/scmsigs.c, 206 Roland Haeder
2009-01-22 20:44 ` Neil Jerram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).