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

Unused variable warnings when compiling with nvcc + gcc #2306

Closed
MatthiasKohl opened this issue Oct 15, 2021 · 1 comment
Closed

Unused variable warnings when compiling with nvcc + gcc #2306

MatthiasKohl opened this issue Oct 15, 2021 · 1 comment

Comments

@MatthiasKohl
Copy link

MatthiasKohl commented Oct 15, 2021

When compiling CUDA files with nvcc (CUDA 11.3 and GCC 9.4), when including catch2 and declaring a simple test case, I'm getting warnings such as variable "[...]autoRegistrar1" was declared but never referenced.
Is there a way to get rid of these warnings?

Platform information:

  • OS: Linux x86_64
  • Compiler+version: NVCC 11.3 / GCC 9.4.0
  • Catch version: v2.13.0 [included as part of CMake build, with cmake 3.17.0]
@MatthiasKohl
Copy link
Author

Other issues similar to this have been opened (#2132, #1552) but I believe they're not using a fairly recent GCC.

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