[Click] Suspicious warnings in Click Git

Bart Braem bart.braem at ua.ac.be
Fri Nov 7 04:19:44 EST 2008


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
-- 
Bart Braem
PATS research group - IBBT
Dept. of Mathematics and Computer Sciences
University of Antwerp
Campus Middelheim, G3.30
Middelheimlaan 1
B-2020 Antwerpen, Belgium
Phone: +32 (0)3 265.32.91
Fax: +32 (0)3 265.37.77
Web: www.pats.ua.ac.be




More information about the click mailing list