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

EnumIface: suppress deprecation warning #540

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

scpeters
Copy link
Member

@scpeters scpeters commented Oct 7, 2023

🦟 Bug fix

Fixes #505, follow-up to #529.

Summary

The EnumIterator class inherits from std::iterator, which has been deprecated in c++17. There is a fix in gz-common6 (#529) but it breaks API, so it can't be merged to Garden. So just suppress the deprecation warning in Garden.

This should fix the gz-common5 brew builds:

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>
@scpeters scpeters requested a review from marcoag as a code owner October 7, 2023 20:36
@scpeters scpeters requested a review from mjcarroll October 7, 2023 20:36
@github-actions github-actions bot added 🌱 garden Ignition Garden 🎵 harmonic Gazebo Harmonic labels Oct 7, 2023
@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

Merging #540 (9194690) into gz-common5 (7838ced) will not change coverage.
The diff coverage is n/a.

❗ Current head 9194690 differs from pull request most recent head 049eb2d. Consider uploading reports for the commit 049eb2d to get more accurate results

@@             Coverage Diff             @@
##           gz-common5     #540   +/-   ##
===========================================
  Coverage       83.64%   83.64%           
===========================================
  Files              90       90           
  Lines           10243    10243           
===========================================
  Hits             8568     8568           
  Misses           1675     1675           
Files Coverage Δ
include/gz/common/EnumIface.hh 100.00% <ø> (ø)

@scpeters scpeters merged commit d9d1722 into gz-common5 Oct 8, 2023
11 checks passed
@scpeters scpeters deleted the scpeters/suppress_enumiface_warning branch October 8, 2023 05:31
Crola1702 pushed a commit that referenced this pull request Apr 25, 2024
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 pushed a commit that referenced this pull request Apr 25, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden 🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

EnumIterator inherits from std::iterator base class which is deprecated in c++17
2 participants