Ignore:
Timestamp:
Apr 6, 2013 2:13:35 PM (6 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/CbcLinkedUtils.cpp

    r1885 r1886  
    340340    if (model)
    341341        assert (model->optimizationDirection() == 1.0);
    342     bool scaling = false;
    343     if (model && (model->rowScale() ||
    344                   model->objectiveScale() != 1.0 || model->optimizationDirection() != 1.0))
    345         scaling = true;
     342#ifndef NDEBUG
     343    bool scaling = model && (model->rowScale() || model->objectiveScale() != 1.0 || model->optimizationDirection() != 1.0);
     344#endif
    346345    const double * cost = NULL;
    347346    if (model)
     
    350349        // not in solve
    351350        cost = objective_;
     351#ifndef NDEBUG
    352352        scaling = false;
     353#endif
    353354    }
    354355    assert (!scaling);
Note: See TracChangeset for help on using the changeset viewer.