Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warnings when compiling with ogre 1.9 #995

Closed
osrf-migration opened this issue Jan 8, 2014 · 8 comments
Closed

Deprecation warnings when compiling with ogre 1.9 #995

osrf-migration opened this issue Jan 8, 2014 · 8 comments
Labels

Comments

@osrf-migration
Copy link

Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Discovered while reviewing pull request #883:

There's a lot of deprecation warnings when compiling gazebo against ogre 1.9:

warning: ‘virtual void Ogre::MovableObject::setUserAny(const Ogre::Any&)’ is deprecated
warning: ‘virtual void Ogre::MovableObject::setUserAny(const Ogre::Any&)’ is deprecated

Full text of warnings here

@osrf-migration
Copy link
Author

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


it's gonna be ugly replacing all setUserAny with #if #else macros.

May be we should our own function that does the version check in just one place, e.g.

#!c++


void SetOgreUserAny(Ogre::MovableObject _obj, const Ogre::Any& _any)
{
  #if (OGRE_VERSION < ((1 << 16) | (9 << 8) | 0))
    ...
  #else
    ...
  #endif
}

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


I second Ian's idea. We could put that function in gazebo/rendering/ogre_inc.h

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I third Ian's idea. We should put it in gazebo/rendering/ogre_gazebo.h

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


I believe this is not nessary, as long as we make the minimum version of OGRE 1.8. Both ogre 1.8 and 1.9 have the API function needed to fix the warning.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


pull request #1354

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


  • changed state from "new" to "resolved"

pull request #1354

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set version to "all"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "resolved" to "closed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant