Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2016, 8:43:10 PM (9 years ago)
Author:
landauf
Message:

fixed warnings (release build).
fixed error in GravityBombField

Location:
code/trunk/src/libraries/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/network/Server.cc

    r11071 r11103  
    372372    b = w->send( static_cast<Host*>(this) );
    373373    assert(b);
     374    (void)b; // avoid compiler warning
    374375//     packet::Gamestate *g = new packet::Gamestate();
    375376//     g->setPeerID(clientID);
  • code/trunk/src/libraries/network/synchronisable/Synchronisable.cc

    r11071 r11103  
    459459    }
    460460    assert(unregistered_nonexistent_variable == false);
     461    (void)unregistered_nonexistent_variable; // avoid compiler warning
    461462   
    462463    it = stringList_.begin();
     
    472473        ++it;
    473474    }
    474     unregistered_nonexistent_variable = true;
    475     assert(unregistered_nonexistent_variable == false); //if we reach this point something went wrong:
     475    assert(false); //if we reach this point something went wrong:
    476476    // the variable has not been registered before
    477477  }
Note: See TracChangeset for help on using the changeset viewer.