Suppress NVCC unused variable warnings (#2427)

Closes #2306
This commit is contained in:
ahans
2022-06-03 16:17:14 +02:00
committed by GitHub
parent 231c58a048
commit 1c4f52b24a
2 changed files with 10 additions and 0 deletions

View File

@@ -57,6 +57,12 @@
#endif
#if defined(__CUDACC__) && !defined(__clang__)
# define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION _Pragma( "nv_diagnostic push" )
# define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION _Pragma( "nv_diagnostic pop" )
# define CATCH_INTERNAL_SUPPRESS_UNUSED_VARIABLE_WARNINGS _Pragma( "nv_diag_suppress 177" )
#endif
#if defined(__clang__) && !defined(_MSC_VER)
# define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION _Pragma( "clang diagnostic push" )