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 -Wuseless-cast Warning #2521

Merged
merged 1 commit into from Sep 22, 2022
Merged

Conversation

HazardyKnusperkeks
Copy link
Contributor

Description

Suppresses a warning, because we hit the warning in our test code (with -Werror).

GitHub Issues

Closes #2520.

@HazardyKnusperkeks
Copy link
Contributor Author

HazardyKnusperkeks commented Sep 14, 2022

I also noticed that there is a .clang-format, but at least the from me touched code isn't clang-formated at all. Should that stay, or should I at least format the code I've added/changed?

@codecov
Copy link

codecov bot commented Sep 14, 2022

Codecov Report

Merging #2521 (be78006) into devel (359542d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            devel    #2521   +/-   ##
=======================================
  Coverage   91.54%   91.54%           
=======================================
  Files         183      183           
  Lines        7562     7562           
=======================================
  Hits         6922     6922           
  Misses        640      640           

@horenmar
Copy link
Member

clang-format was added later in development, and it doesn't have the right options to faithfully replicate the desired formatting. The general policy is to use it on newly added/changed code, unless it messes up the overall formatting too much (and at some point figure out a way to deal with this 😃 ).

@horenmar horenmar merged commit 0de60d8 into catchorg:devel Sep 22, 2022
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.

useless-cast warning from THROW macro family
2 participants