pal-robotics / perception_blort

opencv
15 stars 14 forks source link

Fix cppcheck warning-to-error #20

Closed awesomebytes closed 10 years ago

awesomebytes commented 10 years ago

This fixes (and hopefully maintains the behaviour): /home/sampfeiffer/svn/catkin_ws/src/perception_blort/blort/src/Recognizer3D/Recognizer3D.cpp: In member function ‘bool blortRecognizer::Recognizer3D::recognize(IplImage*, std::mapstd::basic_string<char, boost::shared_ptrTomGine::tgPose >&, std::mapstd::basic_string<char, double>&, const std::mapstd::basic_string<char, bool>&)’: /home/sampfeiffer/svn/catkin_ws/src/perception_blort/blort/src/Recognizer3D/Recognizer3D.cpp:227:108: error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses] cc1plus: some warnings being treated as errors Command exited with non-zero status 1 Recognizer3D.cpp build time cppcheck(2.47) g++(3.31)

bmagyar commented 10 years ago

nice catch, thanks!