-
-
Notifications
You must be signed in to change notification settings - Fork 650
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
nvcc compiler warning; doctest.h(4138): warning : expression has no effect #454
Comments
Hello, and thanks for reporting this issue! Can you paste the exact warning, as I don't have a CUDA compiler setup at hand? Does it happen only in Release? And can you try putting a |
This is literally the complete warning (repeated a bunch of times):
Yes, this only happens with the release build. Some flags used with the release (incomplete list)
some flags used with the debug configuration:
Yes, using
helps. |
I pushed a fix for this in the |
Description
I've seen some claims that doctest shouldn't be throwing any warnings ;)
It does it for me, on the following two lines, when building from CMake in Release configuration under Visual Studio 2019 using the latest
nvcc
from CUDA 11.2:Full invocation (generated by CMake):
Steps to reproduce
Add a simple cuda file (
*.cu
) to a CUDA-enabled CMake-based project and compile it. Inclusion of the header is sufficient to trigger the warning.Extra information
PS: feel free to close this as invalid.
The text was updated successfully, but these errors were encountered: