From a42c27925569a3a7460d2df26dcdc50a87c65de0 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Thu, 10 Nov 2016 16:41:51 +0100 Subject: [PATCH] Corrected various warning in an old importer/exporter --- wrap/io_trimesh/export_gts.h | 2 +- wrap/io_trimesh/import_gts.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wrap/io_trimesh/export_gts.h b/wrap/io_trimesh/export_gts.h index ea7c0c7b..83bf9cfe 100644 --- a/wrap/io_trimesh/export_gts.h +++ b/wrap/io_trimesh/export_gts.h @@ -53,7 +53,7 @@ namespace vcg { typedef typename SaveMeshType::VertexIterator VertexIterator; typedef typename SaveMeshType::FaceIterator FaceIterator; - static int Save(SaveMeshType &m, const char * filename, int mask=0 ) + static int Save(SaveMeshType &m, const char * filename, int /*mask*/ ) { QFile device(filename); if (!device.open(QFile::WriteOnly)) diff --git a/wrap/io_trimesh/import_gts.h b/wrap/io_trimesh/import_gts.h index daa48a18..9753e1db 100644 --- a/wrap/io_trimesh/import_gts.h +++ b/wrap/io_trimesh/import_gts.h @@ -185,7 +185,7 @@ namespace vcg } sa = line.split(' '); - if (!sa.size()>=3) + if (!(sa.size()>=3)) { std::cerr << "Error parsing vertex " << line.toLocal8Bit().data() << "\n"; return InvalidFile; @@ -213,7 +213,7 @@ namespace vcg } sa = line.split(' '); - if (!sa.size()>=2) + if (!(sa.size()>=2)) { std::cerr << "Error parsing edge " << line.toLocal8Bit().data() << "\n"; return InvalidFile; @@ -238,7 +238,7 @@ namespace vcg } sa = line.split(' '); - if (!sa.size()>=3) + if (!(sa.size()>=3)) { std::cerr << "Error parsing face " << line.toLocal8Bit().data() << "\n"; return InvalidFile;