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:
Robert Maynard 2018-05-02 09:23:07 -04:00
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