Warning fixes

This commit is contained in:
Robert Osfield
2009-04-22 16:42:16 +00:00
parent 3efb69b0c6
commit ddd3c39a17
2 changed files with 6 additions and 1 deletions

View File

@@ -33,6 +33,9 @@ WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#ifndef __PLY_H__
#define __PLY_H__
// include to quieten down silly VS warnings
#include <osg/Export>
#ifdef __cplusplus
extern "C" {
#endif

View File

@@ -9,9 +9,9 @@
/** note, derived from Equalizer LGPL source.*/
#include "typedefs.h"
#include "vertexData.h"
#include "ply.h"
#include <cstdlib>
#include <algorithm>
#include <osg/Geometry>
@@ -249,7 +249,9 @@ osg::Node* VertexData::readPlyFile( const char* filename, const bool ignoreColor
MESHASSERT( _vertices->size() == static_cast< size_t >( nElems ) );
// Check all color elements read or not
if( hasColors && !ignoreColors )
{
MESHASSERT( _colors->size() == static_cast< size_t >( nElems ) );
}
}
catch( exception& e )
{