removed harmless warnings

This commit is contained in:
Paolo Cignoni 2010-03-16 14:25:30 +00:00
parent bf69d1c24a
commit 80f825a428
2 changed files with 4 additions and 4 deletions

View File

@ -986,14 +986,13 @@ public:
template <class ATTR_TYPE> template <class ATTR_TYPE>
static static
void FixPaddedPerMeshAttribute ( MeshType & m,PointerToAttribute & pa){ void FixPaddedPerMeshAttribute ( MeshType & /*m*/,PointerToAttribute & pa){
// create the container of the right type // create the container of the right type
Attribute<ATTR_TYPE> * _handle = new Attribute<ATTR_TYPE>(); Attribute<ATTR_TYPE> * _handle = new Attribute<ATTR_TYPE>();
// copy the padded container in the new one // copy the padded container in the new one
ATTR_TYPE * dest = _handle->attribute; char * ptr = (char*)( ((Attribute<ATTR_TYPE> *)pa._handle)->DataBegin());
char * ptr = (char*)( ((Attribute<ATTR_TYPE> *)pa._handle)->DataBegin());
memcpy((void*)_handle->attribute ,(void*) &(ptr[0]) ,sizeof(ATTR_TYPE)); memcpy((void*)_handle->attribute ,(void*) &(ptr[0]) ,sizeof(ATTR_TYPE));
// remove the padded container // remove the padded container

View File

@ -562,7 +562,8 @@ namespace vcg
} }
break; break;
} }
} case LeaveUnsorted: // nothing to do.
}
if (k != i) if (k != i)
{ {
W[k] = W[i]; // i.e. W[k] = W[i]; // i.e.