From 75e84ea40f4e263c08aff40ee5180cb7bc2ba714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Wed, 7 Aug 2019 18:36:16 +0200 Subject: [PATCH] fix warnings --- libsrc/geom2d/genmesh2d.cpp | 2 +- libsrc/geom2d/geom2dmesh.cpp | 2 +- libsrc/geom2d/geom2dmesh.hpp | 12 ++++++------ libsrc/gprim/splinegeometry.hpp | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libsrc/geom2d/genmesh2d.cpp b/libsrc/geom2d/genmesh2d.cpp index cdd6eb4f..88bf3104 100644 --- a/libsrc/geom2d/genmesh2d.cpp +++ b/libsrc/geom2d/genmesh2d.cpp @@ -480,7 +480,7 @@ namespace netgen NgArray nextpi(bnp); NgArray si1(bnp), si2(bnp); - PointIndex firstpi; + // PointIndex firstpi; nextpi = -1; si1 = -1; diff --git a/libsrc/geom2d/geom2dmesh.cpp b/libsrc/geom2d/geom2dmesh.cpp index be1fc6c9..bc5fef19 100644 --- a/libsrc/geom2d/geom2dmesh.cpp +++ b/libsrc/geom2d/geom2dmesh.cpp @@ -102,7 +102,7 @@ namespace netgen } - void Refinement2d :: ProjectToSurface (Point<3> & p, int surfi, const PointGeomInfo & /* gi */) const + void Refinement2d :: ProjectToSurface (Point<3> & p, int surfi, PointGeomInfo & /* gi */) const { p(2) = 0; } diff --git a/libsrc/geom2d/geom2dmesh.hpp b/libsrc/geom2d/geom2dmesh.hpp index 9b72216d..cab3418e 100644 --- a/libsrc/geom2d/geom2dmesh.hpp +++ b/libsrc/geom2d/geom2dmesh.hpp @@ -23,25 +23,25 @@ namespace netgen int surfi, const PointGeomInfo & gi1, const PointGeomInfo & gi2, - Point<3> & newp, PointGeomInfo & newgi) const; + Point<3> & newp, PointGeomInfo & newgi) const override; virtual void PointBetween (const Point<3> & p1, const Point<3> & p2, double secpoint, int surfi1, int surfi2, const EdgePointGeomInfo & ap1, const EdgePointGeomInfo & ap2, - Point<3> & newp, EdgePointGeomInfo & newgi) const; + Point<3> & newp, EdgePointGeomInfo & newgi) const override; virtual Vec<3> GetTangent (const Point<3> & p, int surfi1, int surfi2, - const EdgePointGeomInfo & ap1) const; + const EdgePointGeomInfo & ap1) const override; virtual Vec<3> GetNormal (const Point<3> & p, int surfi1, - const PointGeomInfo & gi) const; + const PointGeomInfo & gi) const override; - virtual void ProjectToSurface (Point<3> & p, int surfi, const PointGeomInfo & /* gi */) const; + virtual void ProjectToSurface (Point<3> & p, int surfi, PointGeomInfo & /* gi */) const override; virtual void ProjectToEdge (Point<3> & p, int surfi1, int surfi2, - const EdgePointGeomInfo & egi) const; + const EdgePointGeomInfo & egi) const override; }; diff --git a/libsrc/gprim/splinegeometry.hpp b/libsrc/gprim/splinegeometry.hpp index 7701afaa..140f618e 100644 --- a/libsrc/gprim/splinegeometry.hpp +++ b/libsrc/gprim/splinegeometry.hpp @@ -30,7 +30,7 @@ namespace netgen NgArray < SplineSeg* > splines; SplineGeometry() : geompoints{}, splines{} { ; } - DLL_HEADER ~SplineGeometry(); + virtual DLL_HEADER ~SplineGeometry(); DLL_HEADER int Load (const NgArray & raw_data, const int startpos = 0);