Closed marting87 closed 6 years ago
Thank you for the improvement.
@dirk-thomas: would this PR be considered for a backport to kinetic-devel
(still at ros_comm
I believe?)? Kinetic also targets C++11 and this also leads to these errors shown there.
I don't think that addressing compiler warnings is important enough to backport. If you would like to create a PR for it I can certainly merge it.
When using ROS_INFO, ROS_WARN and ROS_ERROR the warning -Wzero-as-null-pointer-constant is triggered in code that is compiled with c++11.
As of gcc 4.7 and clang 5.0 the compiler will trigger a warning if 0 is used instead of nullptr in c++11.
Replaced 0 with NULL to be compatible c++11+ and prior versions.