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/CbcThread.cpp

    r1880 r1886  
    175175    struct timespec absTime2;
    176176    my_gettime(&absTime2);
    177     double time2 = absTime2.tv_sec + 1.0e-9 * absTime2.tv_nsec;
     177    double time2 = (double)absTime2.tv_sec + 1.0e-9 * (double)absTime2.tv_nsec;
    178178    return time2;
    179179}
     
    244244{
    245245#ifdef CBC_PTHREAD
    246     return threadId_.status;
     246    return static_cast<int>(threadId_.status);
    247247#else
    248248#endif
     
    879879            children_[i].setReturnCode( 0);
    880880            children_[i].unlockFromMaster();
    881             int returnCode;
    882             returnCode = children_[i].exit();
     881#ifndef NDEBUG
     882            int returnCode = children_[i].exit();
     883            assert (!returnCode);
     884#else
     885            children_[i].exit();
     886#endif
    883887            children_[i].setStatus( 0);
    884             assert (!returnCode);
    885888            //else
    886889            threadModel_[i]->moveToModel(baseModel, 2);
Note: See TracChangeset for help on using the changeset viewer.