fixed non-used argument, compiler warnings
authorPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 1 Jul 2009 18:24:59 +0000 (14:24 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 1 Jul 2009 18:24:59 +0000 (14:24 -0400)
src/Effects/Screen.cpp
src/Entities/PhysicsEntity.cpp
src/GameStates/CreatingPolygon.cpp
src/GameStates/Paused.cpp
src/GameStates/Running.cpp
src/main.cpp

index 770a456..bfcc581 100644 (file)
@@ -34,7 +34,7 @@ Screen::~Screen()
 
 /// ***** Public Class Methods *****
 
-Vector2 Screen::positionDelta(const PhysicsEntity* e, float time_step) const
+Vector2 Screen::positionDelta(const PhysicsEntity* e, float /*time_step*/) const
 {
     const Vector2& pos = e->positionRaw();
 
@@ -61,7 +61,7 @@ Vector2 Screen::positionDelta(const PhysicsEntity* e, float time_step) const
     return acc;
 }
 
-Vector2 Screen::velocityDelta(const PhysicsEntity* e, float time_step) const
+Vector2 Screen::velocityDelta(const PhysicsEntity* e, float /*time_step*/) const
 {
     const Vector2& pos = e->positionRaw();
     const Vector2& velo = e->velocityRaw();
index 060ef62..d8615da 100644 (file)
@@ -74,7 +74,7 @@ void PhysicsEntity::applyForce(const Vector2& force)
 {
     applyForce(force, position);
 }
-void PhysicsEntity::applyForce(const Vector2& force, const Vector2& at)
+void PhysicsEntity::applyForce(const Vector2& force, const Vector2& /*at*/)
 {
     this->force += force;
 }
@@ -83,7 +83,7 @@ void PhysicsEntity::applyImpulse(const Vector2& impulse)
 {
     applyImpulse(impulse, position);
 }
-void PhysicsEntity::applyImpulse(const Vector2& impulse, const Vector2& at)
+void PhysicsEntity::applyImpulse(const Vector2& impulse, const Vector2& /*at*/)
 {
     velocity += impulse;
 }
index f377141..105dbb3 100644 (file)
@@ -31,15 +31,15 @@ CreatingPolygon::~CreatingPolygon()
 
 /// ***** Public Class Methods *****
 
-void CreatingPolygon::handleInput(bool on_top) const
+void CreatingPolygon::handleInput(bool /*on_top*/) const
 {
     // TODO
 }
-void CreatingPolygon::update(float time_step, bool on_top) const
+void CreatingPolygon::update(float /*time_step*/, bool /*on_top*/) const
 {
 
 }
-void CreatingPolygon::draw(bool on_top) const
+void CreatingPolygon::draw(bool /*on_top*/) const
 {
     // TODO
 }
index f2982b1..e539f5f 100644 (file)
@@ -31,15 +31,15 @@ Paused::~Paused()
 
 /// ***** Public Class Methods *****
 
-void Paused::handleInput(bool on_top) const
+void Paused::handleInput(bool /*on_top*/) const
 {
     // TODO
 }
-void Paused::update(float time_step, bool on_top) const
+void Paused::update(float /*time_step*/, bool /*on_top*/) const
 {
 
 }
-void Paused::draw(bool on_top) const
+void Paused::draw(bool /*on_top*/) const
 {
     // TODO
 }
index f85c30f..1356891 100644 (file)
@@ -47,7 +47,7 @@ void Running::update(float time_step, bool on_top) const
         manager::update(time_step);
     }
 }
-void Running::draw(bool on_top) const
+void Running::draw(bool /*on_top*/) const
 {
     manager::draw();
 }
index 988f5d1..ddf2dbd 100644 (file)
@@ -95,7 +95,7 @@ static bool s_bUpdateInitialized  = false;
 static bool s_bDrawInitialized    = false;
 
 /// ***** MAIN Method *****
-int main(int argc, char** args)
+int main(int /*argc*/, char** /*args*/)
 {
     mainInit();
     run();