- Timestamp:
- Jan 31, 2016, 8:43:10 PM (9 years ago)
- Location:
- code/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/BaseObject.cc
r11071 r11103 205 205 Template* link; 206 206 assert(!(link = Template::getTemplate(temp->getLink())) || !link->isLink()); 207 link = nullptr;207 (void)link; // avoid compiler warning 208 208 } 209 209 else -
code/trunk/src/libraries/network/Server.cc
r11071 r11103 372 372 b = w->send( static_cast<Host*>(this) ); 373 373 assert(b); 374 (void)b; // avoid compiler warning 374 375 // packet::Gamestate *g = new packet::Gamestate(); 375 376 // g->setPeerID(clientID); -
code/trunk/src/libraries/network/synchronisable/Synchronisable.cc
r11071 r11103 459 459 } 460 460 assert(unregistered_nonexistent_variable == false); 461 (void)unregistered_nonexistent_variable; // avoid compiler warning 461 462 462 463 it = stringList_.begin(); … … 472 473 ++it; 473 474 } 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: 476 476 // the variable has not been registered before 477 477 } -
code/trunk/src/modules/pickup/PickupSpawner.cc
r11099 r11103 191 191 bool pickedUp = this->pickup_->pickup(target); 192 192 assert(pickedUp); 193 pickedUp = false; // To avoid compiler warning.193 (void)pickedUp; // To avoid compiler warning. 194 194 195 195 this->setPickupable(nullptr); -
code/trunk/src/modules/weapons/projectiles/GravityBombField.cc
r11083 r11103 66 66 randomRotation.x = rnd(); 67 67 randomRotation.y = rnd(); 68 randomRotation. y= rnd();68 randomRotation.z = rnd(); 69 69 randomRotation.normalise(); 70 70 bombModel_->setAngularAcceleration(randomRotation*(PEAK_ANGULAR_VELOCITY/FORCE_FIELD_LIFETIME));
Note: See TracChangeset
for help on using the changeset viewer.