ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

catkin set warning lvl

asked 2013-09-17 03:00:48 -0600

Hunk gravatar image

Hello,

how i can set my warning level when i am using catkin_make?

i get no warnings at the moment.

thank you for your help

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2013-09-17 07:56:46 -0600

William gravatar image

updated 2013-09-18 07:23:54 -0600

If you are talking about compiler warnings, you can pass arguments to cmake or make via catkin_make:

 $ catkin_make --cmake-args -DCMAKE_CXX_FLAGS="-Wall"

Should enable all the warnings, for example.

edit flag offensive delete link more

Comments

when i use this i get CMake Warning: Manually-specified variables were not used by the project: CXX_FLAGS

Hunk gravatar image Hunk  ( 2013-09-17 20:57:18 -0600 )edit

That should have been `CMAKE_CXX_FLAGS`, I updated my answer.

William gravatar image William  ( 2013-09-18 07:24:14 -0600 )edit

thank you it is working :)

Hunk gravatar image Hunk  ( 2013-09-18 21:11:32 -0600 )edit
0

answered 2013-09-17 20:53:36 -0600

Additionally to what William said.

Usually you get warnings only on the first run of catkin_make. Once the piece of code is compiled, catkin_make (actually cmake) will not attempt to compile it again and thus you will not see the warnings. To force rebuild simply delete the build tree (build directory).

edit flag offensive delete link more

Comments

yes true, but my warning level is to low so i get less warnings

Hunk gravatar image Hunk  ( 2013-09-17 20:58:20 -0600 )edit

Question Tools

Stats

Asked: 2013-09-17 03:00:48 -0600

Seen: 1,283 times

Last updated: Sep 18 '13