-
Notifications
You must be signed in to change notification settings - Fork 201
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
Disable Ogre deprecation warning on Windows #242
Conversation
Is this related to #184? Does it address any of these / all of these / or different warnings? |
No, this PR only fixes one specific warning that occurs since #186 has been merged (yesterday). Nevertheless, we are currently able to build rviz using VS2017 without any warnings. |
Can you create a PR with these changes to get rid of all the remaining warning. We soon want to switch to VS 2017 and that is the last code change we are waiting for.
One of the nodes (icecube) failed recent jobs. It has been taken offline since then. Please feel free to reschedule your build anytime. |
I think my comment was a bit misunderstanding. |
# include <Ogre.h> // NOLINT | ||
# pragma warning(pop) | ||
#else | ||
# include <Ogre.h> // NOLINT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer that we do not repeat the include statement in this case since it's not different across OS's.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's what I would prefer:
#ifdef _WIN32
# pragma warning(push)
# pragma warning(disable : 4996)
#endif
#include <Ogre.h> // NOLINT
#ifdef _WIN32
# pragma warning(pop)
#endif
I tried to make pr through the webui, but it gave me a 404 for some reason.
Is this change ok with you @greimela-si?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that looks good to me!
The Windows build currently shows a deprecation warning in Ogre when building with Visual Studio 2017.