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

5 ➡️ 3 - EnumIface: suppress deprecation warning (#540) #601

Closed
wants to merge 1 commit into from

Conversation

Crola1702
Copy link
Contributor

🦟 Bug fix

Fixes #505

Summary

Backport of #540

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

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.

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>
@Crola1702 Crola1702 requested a review from marcoag as a code owner April 25, 2024 14:48
@Crola1702 Crola1702 requested a review from scpeters April 25, 2024 14:48
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Apr 25, 2024
@@ -140,6 +140,7 @@ namespace ignition
/// std::cout << "Type++ Name[" << myTypeIface.Str(*i) << "]\n";
/// }
/// \verbatim
GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION
Copy link
Contributor

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-cmake/blob/ign-cmake2/include/gz/utilities/SuppressWarning.hh and use the IGN prefix. Note that this version of gz-common didn't have a dependency on gz-utils. However, the warning suppression utilities are available in gz-cmake2.

@azeey
Copy link
Contributor

azeey commented May 7, 2024

I didn't realize the GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION macros are not in https://github.com/gazebosim/gz-cmake/blob/ign-cmake2/include/gz/utilities/SuppressWarning.hh. Sorry about that. I have a fix for all the warnings in #603

@azeey
Copy link
Contributor

azeey commented May 7, 2024

#603 is merged, so I'll close this.

@azeey azeey closed this May 7, 2024
@Crola1702 Crola1702 deleted the Crola1702/5_to_3_25-04-2024 branch May 8, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants