From 7d9ada2e55f817aeacb9cc3ba62736421788720a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 5 Jun 2013 08:23:24 +0000 Subject: [PATCH] Fixed some clang compiler warnings git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@831 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Core/IO/OMFormat.hh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Core/IO/OMFormat.hh b/src/OpenMesh/Core/IO/OMFormat.hh index 780897b9..1a309000 100644 --- a/src/OpenMesh/Core/IO/OMFormat.hh +++ b/src/OpenMesh/Core/IO/OMFormat.hh @@ -317,8 +317,9 @@ namespace OMFormat { case Chunk::Entity_Edge: C += _hdr.n_edges_; break; case Chunk::Entity_Mesh: C = 1; break; default: - std::cerr << "Invalid value in _chunk_hdr.entity_\n"; - assert( false ); + std::cerr << "Invalid value in _chunk_hdr.entity_\n"; + assert( false ); + break; } return C * vector_size( _chunk_hdr ); @@ -399,6 +400,10 @@ namespace OMFormat { case 2: return OMFormat::Chunk::Integer_16; case 4: return OMFormat::Chunk::Integer_32; case 8: return OMFormat::Chunk::Integer_64; + default: + std::cerr << "Invalid value in integer_size\n"; + assert( false ); + break; } return Chunk::Integer_Size(0); } @@ -418,6 +423,10 @@ namespace OMFormat { case 4: return OMFormat::Chunk::Float_32; case 8: return OMFormat::Chunk::Float_64; case 16: return OMFormat::Chunk::Float_128; + default: + std::cerr << "Invalid value in float_size\n"; + assert( false ); + break; } return Chunk::Float_Size(0); } -- GitLab