httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: warnings on sol 2.6
Date Sun, 30 Sep 2001 04:39:40 GMT
On Sat, 29 Sep 2001, Justin Erenkrantz wrote:

> > thread.c: In function `apr_thread_once_init':
> > thread.c:261: warning: missing braces around initializer
> > thread.c:261: warning: (near initialization for
> > `once_init.__pthread_once_pad')
>
> I've seen this on Solaris 8 as well.  I was tempted to commit the {}s,
> and I know that it compiles fine on Linux 2.4 with the {}.  Anyone
> else care to comment? Linux defines PTHREAD_ONCE as 0,

I hadn't actually tried compiling it on Linux 2.4...  I just saw that it
was defined there as 0 and the typedef is to a straight int, so it didn't
even occur to me that it still might actually work with {0} instead of
just 0.  If so, then great!

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA



Mime
View raw message