Fixed some clang compiler warnings

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@831 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-06-05 08:23:24 +00:00
parent ee648b6da1
commit 7d9ada2e55

View File

@@ -317,8 +317,9 @@ namespace OMFormat {
case Chunk::Entity_Edge: C += _hdr.n_edges_; break; case Chunk::Entity_Edge: C += _hdr.n_edges_; break;
case Chunk::Entity_Mesh: C = 1; break; case Chunk::Entity_Mesh: C = 1; break;
default: default:
std::cerr << "Invalid value in _chunk_hdr.entity_\n"; std::cerr << "Invalid value in _chunk_hdr.entity_\n";
assert( false ); assert( false );
break;
} }
return C * vector_size( _chunk_hdr ); return C * vector_size( _chunk_hdr );
@@ -399,6 +400,10 @@ namespace OMFormat {
case 2: return OMFormat::Chunk::Integer_16; case 2: return OMFormat::Chunk::Integer_16;
case 4: return OMFormat::Chunk::Integer_32; case 4: return OMFormat::Chunk::Integer_32;
case 8: return OMFormat::Chunk::Integer_64; case 8: return OMFormat::Chunk::Integer_64;
default:
std::cerr << "Invalid value in integer_size\n";
assert( false );
break;
} }
return Chunk::Integer_Size(0); return Chunk::Integer_Size(0);
} }
@@ -418,6 +423,10 @@ namespace OMFormat {
case 4: return OMFormat::Chunk::Float_32; case 4: return OMFormat::Chunk::Float_32;
case 8: return OMFormat::Chunk::Float_64; case 8: return OMFormat::Chunk::Float_64;
case 16: return OMFormat::Chunk::Float_128; case 16: return OMFormat::Chunk::Float_128;
default:
std::cerr << "Invalid value in float_size\n";
assert( false );
break;
} }
return Chunk::Float_Size(0); return Chunk::Float_Size(0);
} }