diff --git a/src/meshlab/glarea.cpp b/src/meshlab/glarea.cpp index 0faf829ad..ef6fe6cb3 100644 --- a/src/meshlab/glarea.cpp +++ b/src/meshlab/glarea.cpp @@ -1571,7 +1571,7 @@ void GLArea::setView() gluLookAt(0, 0, cameraDist,0, 0, 0, 0, 1, 0); } -void GLArea::setTiledView(GLdouble fovY, float viewRatio, float fAspect, GLdouble zNear, GLdouble zFar, float cameraDist) +void GLArea::setTiledView(GLdouble fovY, float viewRatio, float fAspect, GLdouble zNear, GLdouble zFar, float /*cameraDist*/) { makeCurrent(); if(fovY<=5) @@ -2342,12 +2342,12 @@ void GLArea::completeUpdateRequested() // return NULL; //} -void GLArea::meshAdded( int index) +void GLArea::meshAdded( int /*index*/) { emit updateLayerTable(); } -void GLArea::meshRemoved( int index ) +void GLArea::meshRemoved( int /*index*/ ) { emit updateLayerTable(); } diff --git a/src/meshlab/ml_selection_buffers.cpp b/src/meshlab/ml_selection_buffers.cpp index 23d882c55..aaf9a0280 100644 --- a/src/meshlab/ml_selection_buffers.cpp +++ b/src/meshlab/ml_selection_buffers.cpp @@ -1,7 +1,7 @@ #include "ml_selection_buffers.h" MLSelectionBuffers::MLSelectionBuffers(MeshModel& m,unsigned int primitivebatch) - :_m(m),_primitivebatch(primitivebatch),_selmap(2),_lock() + :_lock(),_m(m),_primitivebatch(primitivebatch),_selmap(2) { } @@ -25,8 +25,7 @@ void MLSelectionBuffers::updateBuffer(ML_SELECTION_TYPE selbuf) { QWriteLocker locker(&_lock); - size_t privchunksize; - size_t toalloc = 0; + size_t privchunksize=0; if (selbuf == ML_PERVERT_SEL) { _m.cm.svn = 0; @@ -103,8 +102,6 @@ void MLSelectionBuffers::updateBuffer(ML_SELECTION_TYPE selbuf) ++_m.cm.svn; ++selectedperchunk; } - size_t pp = sizeof(vcg::Point3f); - if (((vertind == _m.cm.VN() - 1) && (selectedperchunk > 0)) || ((chunkindex == privchunksize - 1) && (selectedperchunk == privchunksize))) { _selmap[ML_PERVERT_SEL].push_back(0); diff --git a/src/meshlab/ml_std_par_dialog.cpp b/src/meshlab/ml_std_par_dialog.cpp index 4aa5628a9..9799d5902 100644 --- a/src/meshlab/ml_std_par_dialog.cpp +++ b/src/meshlab/ml_std_par_dialog.cpp @@ -19,7 +19,7 @@ static void updateRenderingData(MainWindow* curmwi, MeshModel* curmodel) } MeshlabStdDialog::MeshlabStdDialog(QWidget *p) - :QDockWidget(QString("Plugin"), p), curmask(MeshModel::MM_UNKNOWN), previewCB(NULL) + :QDockWidget(QString("Plugin"), p), previewCB(NULL), curmask(MeshModel::MM_UNKNOWN) { qf = NULL; stdParFrame = NULL; @@ -306,4 +306,4 @@ MeshlabStdDialog::~MeshlabStdDialog() { delete stdParFrame; delete previewCB; -} \ No newline at end of file +}