[Click] Suspicious warnings in Click Git

Roman Chertov rchertov at cs.ucsb.edu
Fri Nov 7 11:37:20 EST 2008


Bart,
    I recompiled my git head that I checkout two days ago 
(7312a95decddc7c4f5043d29d622dc9efb99a547) and there are no such 
warnings.  I am building on an SMP AMD x86_64 if it makes any difference.

Roman

Bart Braem wrote:
> Hi list,
> 
> While compiling the git head I got these warnings:
> 
>    CXX ../lib/routerthread.cc
> ../lib/routerthread.cc: In member function ‘void  
> RouterThread::driver_lock_tasks()’:
> ../lib/routerthread.cc:154: warning: passing negative value  
> ‘-0x00000000000000001’ for argument 2 to ‘bool  
> atomic_uint32_t::compare_and_swap(uint32_t, uint32_t)’
> ../lib/routerthread.cc: In member function ‘void  
> RouterThread::driver_unlock_tasks()’:
> ../lib/routerthread.cc:161: warning: passing negative value  
> ‘-0x00000000000000001’ for argument 1 to ‘bool  
> atomic_uint32_t::compare_and_swap(uint32_t, uint32_t)’
> 
> The code is somewhat strange, is this official syntax to call those  
> functions with negative arguments?
> 
> Regards,
> Bart Braem



More information about the click mailing list