From 08a6788e1fdaf4cd68c1c21d116c080461c42e30 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 23 Dec 2017 18:24:19 +0100 Subject: [PATCH] Fix Intel 18 warnings in OpenCASCADE wrapper --- source/opencascade/utilities.cc | 4 ++++ source/opencascade/utilities.inst.in | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc index bd83e5f571..300d2ee665 100644 --- a/source/opencascade/utilities.cc +++ b/source/opencascade/utilities.cc @@ -177,6 +177,8 @@ namespace OpenCASCADE case 3: return gp_Pnt(p[0], p[1], p[2]); } + AssertThrow (false, ExcNotImplemented()); + return {}; } template @@ -198,6 +200,8 @@ namespace OpenCASCADE case 3: return Point(p.X(), p.Y(), p.Z()); } + AssertThrow (false, ExcNotImplemented()); + return {}; } template diff --git a/source/opencascade/utilities.inst.in b/source/opencascade/utilities.inst.in index 7fae0b9abf..c3a45cce05 100644 --- a/source/opencascade/utilities.inst.in +++ b/source/opencascade/utilities.inst.in @@ -33,7 +33,7 @@ for (deal_II_dimension : DIMENSIONS) template TopoDS_Edge interpolation_curve(std::vector >& curve_points, - const Tensor<1, deal_II_dimension>& direction=Tensor<1,deal_II_dimension>(), + const Tensor<1, deal_II_dimension>& direction, const bool closed, const double tolerance); -- 2.39.5