From 3102340852ccb3b190826faef8f72fc78b2549a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 23 Jul 2013 14:03:45 +0000 Subject: [PATCH] Silence more warnings in OFF PLY and STL writer git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@845 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Core/IO/writer/OFFWriter.cc | 14 +++++++------- src/OpenMesh/Core/IO/writer/PLYWriter.cc | 14 +++++++------- src/OpenMesh/Core/IO/writer/STLWriter.cc | 12 ++++++------ 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/OpenMesh/Core/IO/writer/OFFWriter.cc b/src/OpenMesh/Core/IO/writer/OFFWriter.cc index d6af8114..9f89797d 100644 --- a/src/OpenMesh/Core/IO/writer/OFFWriter.cc +++ b/src/OpenMesh/Core/IO/writer/OFFWriter.cc @@ -199,7 +199,7 @@ write_ascii(std::ostream& _out, BaseExporter& _be, Options _opt) const // vertex data (point, normals, colors, texcoords) - for (i=0, nV=_be.n_vertices(); i vhandles; - for (i=0, nF=_be.n_faces(); i vhandles; - for (i=0, nF=_be.n_faces(); i vhandles; FaceHandle fh; @@ -205,7 +205,7 @@ write_stla(std::ostream& _out, BaseExporter& _be, Options /* _opt */, std::strea { omlog() << "[STLWriter] : write ascii file\n"; - unsigned int i, nF(_be.n_faces()), nV; + int i, nF(int(_be.n_faces())), nV; Vec3f a, b, c, n; std::vector vhandles; FaceHandle fh; @@ -265,7 +265,7 @@ write_stlb(const std::string& _filename, BaseExporter& _be, Options /* _opt */) } - unsigned int i, nF(_be.n_faces()), nV; + int i, nF(int(_be.n_faces())), nV; Vec3f a, b, c, n; std::vector vhandles; FaceHandle fh; @@ -336,7 +336,7 @@ write_stlb(std::ostream& _out, BaseExporter& _be, Options /* _opt */, std::strea omlog() << "[STLWriter] : write binary file\n"; - unsigned int i, nF(_be.n_faces()), nV; + int i, nF(int(_be.n_faces())), nV; Vec3f a, b, c, n; std::vector vhandles; FaceHandle fh; @@ -351,7 +351,7 @@ write_stlb(std::ostream& _out, BaseExporter& _be, Options /* _opt */, std::strea // number of faces - write_int(_be.n_faces(), _out); + write_int(int(_be.n_faces()), _out); // write face set @@ -413,7 +413,7 @@ binary_size(BaseExporter& _be, Options /* _opt */) const bytes += 4; // #faces - unsigned int i, nF(_be.n_faces()); + int i, nF(int(_be.n_faces())); std::vector vhandles; for (i=0; i