-
Notifications
You must be signed in to change notification settings - Fork 41
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
5 ➡️ 4 - EnumIface: suppress deprecation warning (#540) #600
Conversation
The EnumIterator inherits from std::iterator, which has been deprecated in c++17. There is a fix in gz-common6 but it breaks API, so it can't be merged to Garden. So just suppress the deprecation warning in Garden. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
include/gz/common/EnumIface.hh
Outdated
@@ -142,6 +142,7 @@ namespace ignition | |||
/// std::cout << "Type++ Name[" << myTypeIface.Str(*i) << "]\n"; | |||
/// } | |||
/// \verbatim | |||
GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION |
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.
You'll need to include https://github.com/gazebosim/gz-utils/blob/ign-utils1/include/gz/utils/SuppressWarning.hh and use the IGN
prefix. Unfortunately, these macros don't have a GZ
prefixed alias in ign-utils1
.
Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
4be1c1e
to
c95da7c
Compare
Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
This change also requires calling I think it is safe for our Ubuntu packages because the |
Needed to use warning suppression in public header file. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
A version that doesn't use the ign-utils macros is in #604. We can still merge this since the macros are better. |
Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org> Signed-off-by: Cristóbal Arroyo <j.arroyo@uniandes.edu.co>
Signed-off-by: Cristóbal Arroyo <j.arroyo@uniandes.edu.co>
Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
I think everything is ready to go. Waiting for approvals and then merge |
The examples are failing on CI. This also shows that we are changing the dependency on ign-utils from being a requirement of the graphics component to being a requirement for the core library. I'm not exactly sure why the example is failing, but I'm inclined to close this PR and live with the bare pragmas that were added in #603. |
🦟 Bug fix
Fixes #505
Summary
Backport of #540
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.