mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-03 01:04:23 +08:00
Disabling the nvcc warnings in addition to the clang warnings when clang is used as a frontend for nvcc
This commit is contained in:
parent
6323851ea9
commit
970751ece3
@ -41,8 +41,9 @@
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#endif
|
#endif
|
||||||
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined __NVCC__
|
#if defined __NVCC__
|
||||||
// Disable the "statement is unreachable" message
|
// Disable the "statement is unreachable" message
|
||||||
#pragma diag_suppress code_is_unreachable
|
#pragma diag_suppress code_is_unreachable
|
||||||
// Disable the "dynamic initialization in unreachable code" message
|
// Disable the "dynamic initialization in unreachable code" message
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
#pragma warning pop
|
#pragma warning pop
|
||||||
#elif defined __clang__
|
#elif defined __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#elif defined __NVCC__
|
#endif
|
||||||
|
|
||||||
|
#if defined __NVCC__
|
||||||
// Don't reenable the diagnostic messages, as it turns out these messages need
|
// 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)
|
// to be disabled at the point of the template instantiation (i.e the user code)
|
||||||
// otherwise they'll be triggeredby nvcc.
|
// otherwise they'll be triggeredby nvcc.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user