mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Suppress conversion warning inside Cell Interpolate code
When converting integer fields the interpolate code generates lots of warnings that we are promoting into floating point space. The quickest solution is to suppress these conversion warnings all together for all interpolation functions.
This commit is contained in:
parent
822d4c61e1
commit
f025c2187b
@ -27,6 +27,11 @@
|
||||
#include <vtkm/VectorAnalysis.h>
|
||||
#include <vtkm/exec/FunctorBase.h>
|
||||
|
||||
#if (defined(VTKM_GCC) || defined(VTKM_CLANG))
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wconversion"
|
||||
#endif // gcc || clang
|
||||
|
||||
namespace vtkm
|
||||
{
|
||||
namespace exec
|
||||
@ -441,4 +446,8 @@ VTKM_EXEC typename FieldVecType::ComponentType CellInterpolate(
|
||||
}
|
||||
} // namespace vtkm::exec
|
||||
|
||||
#if (defined(VTKM_GCC) || defined(VTKM_CLANG))
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // gcc || clang
|
||||
|
||||
#endif //vtk_m_exec_Interpolate_h
|
||||
|
Loading…
Reference in New Issue
Block a user