From 3eb92cbe8a70bf810c3424a13bb2db43aabbd7b0 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 17 Feb 2011 11:38:01 +0000 Subject: [PATCH] harmless gcc warnings --- wrap/io_trimesh/import_obj.h | 12 ++++++------ wrap/io_trimesh/import_off.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wrap/io_trimesh/import_obj.h b/wrap/io_trimesh/import_obj.h index 4cbf2735..bee25ed6 100644 --- a/wrap/io_trimesh/import_obj.h +++ b/wrap/io_trimesh/import_obj.h @@ -713,7 +713,7 @@ public: * \param stream The object providing the input stream * \param tokens The "tokens" in the next line */ - inline static const void TokenizeNextLine(std::ifstream &stream, std::vector< std::string > &tokens) + inline static void TokenizeNextLine(std::ifstream &stream, std::vector< std::string > &tokens) { if(stream.eof()) return; std::string line; @@ -744,7 +744,7 @@ public: while (from &tokens) + inline static void TokenizeNextLine(std::ifstream &stream, std::vector< std::string > &tokens) { std::string line; do @@ -558,7 +558,7 @@ namespace vcg if(from!=length) { to = from+1; - while ( (line[to]!=' ' && line[to] != '\t' || line[to] == '\r') && to!=length) + while ( (((line[to]!=' ') && (line[to] != '\t')) || (line[to] == '\r')) && to!=length) to++; tokens.push_back(line.substr(from, to-from).c_str()); from = to;