apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: cvs commit: apr/locks/unix thread_mutex.c
Date Fri, 08 Aug 2003 13:11:52 GMT
Jeff Trawick wrote:

> wrowe@apache.org wrote:
> 
>> wrowe       2003/08/07 15:16:24
>>
>>   Modified:    include/arch/unix apr_arch_thread_mutex.h
>>                locks/unix thread_mutex.c
>>   Log:
>>     Revamp apr_thread_mutex to be as thread safe, and occasionally
>>     as reentrant as possible.  Switched to atomics to preserve the
>>     incr/decr integrity.
> 
> 
> on RH 9 and bundled gcc:
> 
>  > thread_mutex.c: In function `apr_thread_mutex_lock':
>  > thread_mutex.c:117: warning: passing arg 1 of `apr_atomic_inc' makes 
> pointer from integer without a cast
>  > thread_mutex.c: In function `apr_thread_mutex_trylock':
>  > thread_mutex.c:165: warning: passing arg 1 of `apr_atomic_inc' makes 
> pointer from integer without a cast
>  > thread_mutex.c: In function `apr_thread_mutex_unlock':
>  > thread_mutex.c:218: warning: passing arg 1 of `apr_atomic_dec' makes 
> pointer from integer without a cast

native compiler on AIX does that one better with fatal errors :)

 > "thread_mutex.c", line 117.33: 1506-280 (S) Function argument 
assignment between types "volatile unsigned int*" and "volatile unsigned 
int" is not allowed.
 > "thread_mutex.c", line 165.33: 1506-280 (S) Function argument 
assignment between types "volatile unsigned int*" and "volatile unsigned 
int" is not allowed.
 > "thread_mutex.c", line 218.37: 1506-280 (S) Function argument 
assignment between types "volatile unsigned int*" and "volatile unsigned 
int" is not allowed.



Mime
View raw message