Compiler warning in MoonManager.cpp

scpeters

18-04-2015 07:17:12

When compiling skyx with clang on Mac OS X, I get a compiler warning about MoonManager.cpp line 225: "explicitly assigning a variable of type 'Ogre::Real' (aka 'float') to itself"

http://build.osrfoundation.org/job/gazebo-any-devel-homebrew-amd64/44/warnings7Result/package.869114785/

Here's a link to the code:

https://bitbucket.org/osrf/gazebo/src/gazebo5_5.0.1/gazebo/rendering/skyx/src/MoonManager.cpp#cl-225

The offending line says:

center = center;

Is that a mistake? Lots of other lines in that functions say:

center = -center;


Regards,
Steve Peters
Open Source Robotics Foundation

scpeters

24-04-2015 19:45:31

bump