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

Suppress GCC useless-cast warning from CHECK_THROWS_MATCHES #2904

Conversation

laudrup
Copy link
Contributor

@laudrup laudrup commented Sep 5, 2024

Suppress warning from GCC about useless cast in the CHECK_THROWS_MATCHES macro the same way it is already being done for the similar CHECK macros.

Suppress warning from GCC about useless cast in the
CHECK_THROWS_MATCHES macro the same way it is already being done for
the similar CHECK macros.
laudrup added a commit to laudrup/async-ssh that referenced this pull request Sep 5, 2024
Catch2 warns about a useless cast when using the CHECK_THROWS_MATCHES
macro.

This patch can hopefully be remove if my pull request is merged and a
newer version of Catch2 is released:

catchorg/Catch2#2904
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.90%. Comparing base (fa306fc) to head (1397c7b).
Report is 1 commits behind head on devel.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel    #2904   +/-   ##
=======================================
  Coverage   90.90%   90.90%           
=======================================
  Files         199      199           
  Lines        8595     8595           
=======================================
  Hits         7813     7813           
  Misses        782      782           

@laudrup
Copy link
Contributor Author

laudrup commented Sep 5, 2024

CHECK_THROWS_MATCHES will generate a useless-cast warning when building with GCC. I assume this additional suppression was simply overseen when the changes 0de60d8 were added.

laudrup added a commit to laudrup/async-ssh that referenced this pull request Sep 5, 2024
Catch2 warns about a useless cast when using the CHECK_THROWS_MATCHES
macro.

This patch can hopefully be remove if my pull request is merged and a
newer version of Catch2 is released:

catchorg/Catch2#2904
@horenmar horenmar merged commit bc63412 into catchorg:devel Sep 6, 2024
77 checks passed
@horenmar
Copy link
Member

horenmar commented Sep 6, 2024

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants