Ignore:
Timestamp:
Apr 6, 2013 2:13:35 PM (7 years ago)
Author:
stefan
Message:

fix compiler (gcc 4.6.2) warnings in optimized mode, mainly about unused variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcSolverExpandKnapsack.cpp

    r1854 r1886  
    552552   for (iKnapsack=0;iKnapsack<numberKnapsack;iKnapsack++) {
    553553      int k=-1;
    554       double value=0.0;
    555554      for (iColumn=knapsackStart[iKnapsack];iColumn<knapsackStart[iKnapsack+1];iColumn++) {
    556555         if (knapsackSolution[iColumn]>1.0e-5) {
     
    561560            }
    562561            k=iColumn;
    563             value=floor(knapsackSolution[iColumn]+0.5);
    564             assert (fabs(value-knapsackSolution[iColumn])<1.0e-5);
     562            assert (fabs(floor(knapsackSolution[iColumn]+0.5)-knapsackSolution[iColumn])<1.0e-5);
    565563         }
    566564      }
Note: See TracChangeset for help on using the changeset viewer.