mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Properly disable nvcc warning messages in user code.
This commit is contained in:
@@ -44,6 +44,10 @@
|
||||
|
||||
#elif defined __NVCC__
|
||||
#pragma diag_suppress code_is_unreachable
|
||||
#pragma diag_suppress initialization_not_reachable
|
||||
#pragma diag_suppress 2651
|
||||
#pragma diag_suppress 2653
|
||||
|
||||
#endif
|
||||
|
||||
#endif // not EIGEN_WARNINGS_DISABLED
|
||||
|
||||
@@ -9,8 +9,13 @@
|
||||
#elif defined __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#elif defined __NVCC__
|
||||
#pragma diag_default code_is_unreachable
|
||||
#pragma diag_default initialization_not_reachable
|
||||
// Don't reenable the diagnostic messages, as it turns out these messages need
|
||||
// to be disabled at the point of the template instantiation (i.e the user code)
|
||||
// otherwise they'll be triggeredby nvcc.
|
||||
// #pragma diag_default code_is_unreachable
|
||||
// #pragma diag_default initialization_not_reachable
|
||||
// #pragma diag_default 2651
|
||||
// #pragma diag_default 2653
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user