Suppress bogus warnings from nvcc about unreachable code that is actually

reachable.
This commit is contained in:
Davis King 2016-11-18 12:40:01 -05:00
parent 4103be8b5a
commit a6c331cef3
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,13 @@
#endif
#endif
#if defined __NVCC__
// Disable the "statement is unreachable" message since it will go off on code that is
// actually reachable but just happens to not be reachable sometimes during certain
// template instantiations.
#pragma diag_suppress code_is_unreachable
#endif
#ifdef _MSC_VER