From 60038951fa65988fd4fa917d69566caf9e1018bd Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 6 Mar 2020 09:23:31 +0100 Subject: [PATCH] Fix a warning [-Wreturn-type] > warning: control reaches end of non-void function [-Wreturn-type] --- NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h b/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h index 79a273d237f..7e1ba4c77ca 100644 --- a/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h +++ b/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h @@ -115,12 +115,12 @@ template struct LA_eigen { return (int)v.cols(); } - template static NT determinant_aux(Mat_ const& m, Tag_true) { - CGAL_assume(false); - } - template static NT determinant_aux(Mat_ const& m, Tag_false) { - return m.determinant(); - } + template static CGAL_NORETURN NT determinant_aux(Mat_ const&, Tag_true) { + CGAL_error(); + } + template static NT determinant_aux(Mat_ const& m, Tag_false) { + return m.determinant(); + } template static NT determinant(Mat_ const&m,bool=false){ switch(m.rows()){