apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry Jen" <henry...@ztune.net>
Subject Re: solaris atomic flaw
Date Sat, 31 May 2008 06:15:49 GMT
Seems like an easy fix, the (void*) cast was put for the wrong parameter.

See http://docs.sun.com/app/docs/doc/816-5180/atomic-cas-ptr-9f?a=view
for the prototype for atomic_cas_ptr.

Trunk version add -Werror which caused build to fail on warning.

Attached is a one line patch for fix.

Cheers,
Henry


On Fri, May 30, 2008 at 10:16 PM, William A. Rowe, Jr.
<wrowe@rowe-clan.net> wrote:
> Henry Jen wrote:
>>
>> Trunk failed to compile with following error:
>>
>> atomic/unix/solaris.c: In function `apr_atomic_casptr':
>> atomic/unix/solaris.c:71: warning: passing arg 2 of `atomic_cas_ptr'
>> discards qualifiers from pointer target type
>> make[1]: *** [atomic/unix/solaris.lo] Error 1
>> make[1]: Leaving directory
>> `/export/home/henryjen/prj/apache.org/apr-trunk'
>> make: *** [all-recursive] Error 1
>>
>> Will investigate.
>
> I suspect this is the misplaced volatile modifier which needs to be fixed
> in 2.0, not before.
>

Mime
View raw message