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 unused variable warning #2132

Closed
mizvekov opened this issue Dec 27, 2020 · 2 comments
Closed

fix unused variable warning #2132

mizvekov opened this issue Dec 27, 2020 · 2 comments

Comments

@mizvekov
Copy link

compiling 3.0.0p2 with clang, I get the following warning:

catch2/internal/catch_run_context.cpp:465:31: warning: unused variable '_' [-Wunused-variable]
        FatalConditionHandler _;
                              ^

Needs something like [[maybe_unused]] or similar, possibly in a way that handles old standards / compilers.

@horenmar
Copy link
Member

What compiler+platform are you using?

@mizvekov
Copy link
Author

mizvekov commented Dec 28, 2020 via email

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

No branches or pull requests

2 participants