diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index 94197583..a5382d13 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -986,14 +986,13 @@ public: template static - void FixPaddedPerMeshAttribute ( MeshType & m,PointerToAttribute & pa){ + void FixPaddedPerMeshAttribute ( MeshType & /*m*/,PointerToAttribute & pa){ // create the container of the right type Attribute * _handle = new Attribute(); // copy the padded container in the new one - ATTR_TYPE * dest = _handle->attribute; - char * ptr = (char*)( ((Attribute *)pa._handle)->DataBegin()); + char * ptr = (char*)( ((Attribute *)pa._handle)->DataBegin()); memcpy((void*)_handle->attribute ,(void*) &(ptr[0]) ,sizeof(ATTR_TYPE)); // remove the padded container diff --git a/vcg/math/lin_algebra.h b/vcg/math/lin_algebra.h index 346199b5..732852fb 100644 --- a/vcg/math/lin_algebra.h +++ b/vcg/math/lin_algebra.h @@ -562,7 +562,8 @@ namespace vcg } break; } - } + case LeaveUnsorted: // nothing to do. + } if (k != i) { W[k] = W[i]; // i.e.