[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