From e9b432b1d9515e0f136d590920188555cea94c39 Mon Sep 17 00:00:00 2001 From: Alex Leontiev Date: Thu, 11 Jul 2013 14:43:48 +0300 Subject: [PATCH] Fixing the warnings Fixed all of the warnings. --- modules/optim/src/lpsolver.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/optim/src/lpsolver.cpp b/modules/optim/src/lpsolver.cpp index dd587f0f01..28b7b461b2 100644 --- a/modules/optim/src/lpsolver.cpp +++ b/modules/optim/src/lpsolver.cpp @@ -204,7 +204,8 @@ static int initialize_simplex(Mat_& c, Mat_& b,double& v,vector< static int inner_simplex(Mat_& c, Mat_& b,double& v,vector& N,vector& B){ int count=0; while(1){ - dprintf(("iteration #%d\n",count++)); + dprintf(("iteration #%d\n",count)); + count++; static MatIterator_ pos_ptr; int e=-1,pos_ctr=0,min_var=INT_MAX; @@ -234,7 +235,6 @@ static int inner_simplex(Mat_& c, Mat_& b,double& v,vector& min_var=INT_MAX; double min=DBL_MAX; int row_it=0; - double ite=0; MatIterator_ min_row_ptr=b.begin(); for(MatIterator_ it=b.begin();it!=b.end();it+=b.cols,row_it++){ double myite=0; @@ -244,7 +244,6 @@ static int inner_simplex(Mat_& c, Mat_& b,double& v,vector& if(val