ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

PCL point_types.h #pragma warning

asked 2013-01-25 16:11:41 -0500

updated 2013-01-25 16:15:09 -0500

I am getting the following warning when attempting to compile a program that includes point_types.h

/opt/ros/groovy/include/pcl-1.6/pcl/point_types.h:56:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]

The warning does not interfere with the build. However, so many of my files include point_types.h, that the build log gets polluted by multiple warnings. Is there any way to turn them off?

I'm using Ubuntu 12.10 and ros-groovy freshly installed from binaries.


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-02-04 08:27:29 -0500

updated 2013-02-04 08:27:44 -0500

I believe this is taken care of in later releases of pcl. For anyone who wants to suppress the warnings while compiling against pcl-1.6, this should do the trick:

rosbuild_add_compile_flags([name-of-target] '-Wno-unknown-pragmas')
edit flag offensive delete link more

answered 2013-01-26 02:49:32 -0500

joq gravatar image

Looks like that statement is trying to suppress some warnings, apparently without success:

// We're doing a lot of black magic with Boost here, so disable warnings in Maintainer mode, as we will never
// be able to fix them anyway
#pragma warning(disable: 4201)

I recommend opening a defect ticket.

edit flag offensive delete link more


Where would this defect be filed? I assume PCL upstream has that already fixed, so it's affecting the released PCL in groovy, which should be fixed with an updated release.

AHornung gravatar image AHornung  ( 2013-02-18 03:59:03 -0500 )edit

Maintenance on combined ROS and PCL issues confuses me. I suggest opening a ticket on to get it fixed in the 1.6 release. Or, ask on the pcl-users mailing list.

joq gravatar image joq  ( 2013-02-18 04:10:00 -0500 )edit
AHornung gravatar image AHornung  ( 2013-02-18 04:53:33 -0500 )edit

Thanks, Armin!

joq gravatar image joq  ( 2013-02-18 05:36:43 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-01-25 16:11:41 -0500

Seen: 523 times

Last updated: Feb 04 '13