Corrected various warning in an old importer/exporter

This commit is contained in:
Paolo Cignoni 2016-11-10 16:41:51 +01:00
parent c21c89b35c
commit a42c279255
2 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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;