fix: add missing backslash in macro definition#3085
Merged
horenmar merged 1 commit intocatchorg:develfrom Mar 30, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## devel #3085 +/- ##
==========================================
+ Coverage 91.34% 91.37% +0.03%
==========================================
Files 204 204
Lines 8899 8899
==========================================
+ Hits 8128 8131 +3
+ Misses 771 768 -3 🚀 New features to boost your workflow:
|
Member
|
Thanks. I don't think you need to add tests for this change. It would be nice to have tests that the various warning suppressions are getting picked up properly, but I don't think it would be worth the effort to implement them; this is the first time I remember seeing the formatting of the suppression macros get broken like this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a missing backslash in one of the definitions of
CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS. This typo was introduced in v3.8.1. The inclusion of this backslash fixes as issue we were facing in libsemigroups/libsemigroups#931 upon updating from v3.8.0 to v3.13.0.Minimal reproducible example
The following is a minimal reproducible example that demonstrates the error being thrown in our CI pipeline:
Contents of
test.cpp:Compile command:
File structure:
Expected output:
File compiles (which is achieved upon applying the changes in this PR).
Actual output:
Other useful information:
> clang++ --version Ubuntu clang version 18.1.3 (1ubuntu1) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/binTesting
I have tested locally that the changes in this PR fix the errors outlined above; however, I wasn't sure how to add tests to the Catch2 test suite that illustrate this. I'd be happy to add tests here with a little bit of guidance!