On Sat, Apr 19, 2014 at 04:02:21PM +0200, Camille 019 wrote: > * /pcbnew/router/direction.h:293:19: warning: comparison of constant 8 with > expression of type 'DIRECTION_45::Directions' is always false > [-Wtautological-constant-out-of-range-compare] > if( m_dir>= 8 ) > ~~~~~ ^ ~
At last C++ compilers advance to the type checking of CL or other functional languages :D Be sure to check that there is *no casting* on things put in that m_dir slot, otherwise you could actually find stuff >= 8 in there Type safety in this project was/is a little... underrated:P -- Lorenzo Marcantonio Logos Srl _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp

