mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
fix a pragma location bug
This commit is contained in:
parent
9048e0bac1
commit
4de37559fd
@ -354,7 +354,7 @@ namespace detail {
|
||||
// This causes a false positive warning, even when the values is within
|
||||
// the value types range
|
||||
//
|
||||
// NVCC 7.5 and below does not recognize this pragma inside of class body,
|
||||
// NVCC 7.5 and below does not recognize this pragma inside of class bodies,
|
||||
// so put them before entering the class.
|
||||
//
|
||||
#if (defined(VTKM_CUDA) && (__CUDACC_VER_MAJOR__ < 8))
|
||||
@ -598,7 +598,9 @@ protected:
|
||||
ComponentType Components[NUM_COMPONENTS];
|
||||
};
|
||||
#if (defined(VTKM_CUDA) && (__CUDACC_VER_MAJOR__ < 8))
|
||||
#if (defined(VTKM_GCC) || defined(VTKM_CLANG))
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // gcc || clang
|
||||
#endif // use cuda < 8
|
||||
|
||||
} // namespace detail
|
||||
|
Loading…
Reference in New Issue
Block a user