From cf0d3f66823622a99a47effb4e35ca7bd1311366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 8 Mar 2018 21:36:26 +0100 Subject: [PATCH] fix warnings --- libsrc/gprim/spline.cpp | 2 +- libsrc/linalg/densemat.cpp | 9 +++++---- libsrc/meshing/meshclass.cpp | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/libsrc/gprim/spline.cpp b/libsrc/gprim/spline.cpp index 9736a499..5b4afc33 100644 --- a/libsrc/gprim/spline.cpp +++ b/libsrc/gprim/spline.cpp @@ -222,7 +222,7 @@ namespace netgen ata.Solve (f, u); // the sign - Point p0 = GetPoint(0); + // Point p0 = GetPoint(0); Vec ht = GetTangent(0); Vec<2> tang(ht(0), ht(1)); diff --git a/libsrc/linalg/densemat.cpp b/libsrc/linalg/densemat.cpp index a0066e8f..f8d58c2a 100644 --- a/libsrc/linalg/densemat.cpp +++ b/libsrc/linalg/densemat.cpp @@ -15,14 +15,15 @@ namespace netgen DenseMatrix :: DenseMatrix (int h, int w) { if (!w) w = h; - width = w; + width = w; height = h; - if (h*w) - data = new double[h*w]; + int hw = h*w; + if (hw) + data = new double[hw]; else data = 0; - for (int i = 0 ; i < (h * w); i++) + for (int i = 0 ; i < (hw); i++) data[i] = 0; } diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index 20c39384..b5fd2b50 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -8,7 +8,7 @@ namespace netgen static mutex buildsearchtree_mutex; Mesh :: Mesh () - : surfarea(*this), topology(*this) + : topology(*this), surfarea(*this) { // volelements.SetName ("vol elements"); // surfelements.SetName ("surf elements"); @@ -5602,7 +5602,7 @@ namespace netgen { int i, j, nv; int ne = GetNE(); - int nse = GetNSE(); + // int nse = GetNSE(); numvertices = 0; for (i = 1; i <= ne; i++)