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

Fix deprecation warnings with GCC for pair<T1,void> comparison operators #6989

Conversation

dalg24
Copy link
Member

@dalg24 dalg24 commented May 3, 2024

Fixup for #6947

GCC emits deprecation warnings in the definition of comparison operators for the deprecated specialization Kokkos::pair<T1, void>. The fix is simple: add the [[deprecated]] attribute for all of these comparison operators.

The issue was spotted in the ArborX nightlies and is also present in our nighties on ORNL Jenkins, we just didn't notice.
@ndellingwood did the SNL nighty builds not catch this issue?!!

Reproducer here does not seem to be sensitive to the GCC version.

Co-Authored-By: Andrey Prokopenko <prokopenkoav@ornl.gov>
@dalg24 dalg24 added Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos) Failure - Nightly Nightly Build Failure Deprecate Items to be deprecated labels May 3, 2024
@dalg24 dalg24 merged commit 06e4c5b into kokkos:develop May 6, 2024
27 of 29 checks passed
@dalg24 dalg24 deleted the deprecated_attribute_comparison_operators_pair_t1_void branch May 6, 2024 20:01
@ndellingwood
Copy link
Contributor

@dalg24 most of the nightly jobs are building with deprecated code off (several Trilinos integration builds have deprecated code on but no -Werror due to noise in other packages). I'll update testing for more deprecated code == on testing coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos) Deprecate Items to be deprecated Failure - Nightly Nightly Build Failure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants