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

Revision history [back]

click to hide/show revision 1
initial version

Related: ros-industrial/ros_qtc_plugin#321.

How can setup QTCreator to ignore this warning?

I'm not sure whether you can do this globally, but you can suppress it per-file with:

#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"

That's not very nice though as it now ignores those for everything, not just the macros.


It would appear this has already been addressed in ros/rosconsole#14. That has changed everything to use nullptr instead of 0, but that has only been released into Melodic, not Kinetic afaict.

Related: ros-industrial/ros_qtc_plugin#321.

How can setup QTCreator to ignore this warning?

I'm not sure whether you can do this globally, but you can suppress it per-file with:

#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"

That's not very nice though as it now ignores those for everything, not just the macros.


It would appear this has already been addressed in ros/rosconsole#14. That has changed everything to use nullptr instead of 0, but that has only been released into Melodic, not Kinetic afaict.afaict (part of 1.13.8, but Kinetic only has 1.12.14).