Author: mordante
Date: Mon Apr 13 08:08:32 2009
New Revision: 34842

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34842&view=rev
Log:
Fix some compiler warnings.

Modified:
    trunk/src/ai_actions.cpp

Modified: trunk/src/ai_actions.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai_actions.cpp?rev=34842&r1=34841&r2=34842&view=diff
==============================================================================
--- trunk/src/ai_actions.cpp (original)
+++ trunk/src/ai_actions.cpp Mon Apr 13 08:08:32 2009
@@ -206,11 +206,11 @@
 // STATELESS INTERFACE TO AI ACTIONS
 // =======================================================================
 
-std::auto_ptr< ai_attack_result > ai_actions::execute_attack_action( int side,
-       bool execute,
-       const map_location& attacker_loc,
-       const map_location& defender_loc,
-       int attacks ) 
+std::auto_ptr< ai_attack_result > ai_actions::execute_attack_action( int 
/*side*/,
+       bool execute,
+       const map_location& /*attacker_loc*/,
+       const map_location& /*defender_loc*/,
+       int /*attacks*/)
 {
        std::auto_ptr< ai_attack_result > ai_action(new ai_attack_result());
        execute ? ai_action->execute() : ai_action->check_before();
@@ -218,11 +218,11 @@
 }
 
 
-std::auto_ptr< ai_move_result > ai_actions::execute_move_action( int side,
-       bool execute,
-       const map_location& from,
-       const map_location& to,
-       bool remove_movement )
+std::auto_ptr< ai_move_result > ai_actions::execute_move_action( int /*side*/,
+       bool execute,
+       const map_location& /*from*/,
+       const map_location& /*to*/,
+       bool /*remove_movement*/)
 {
        std::auto_ptr< ai_move_result > ai_action(new ai_move_result());
        execute ? ai_action->execute() : ai_action->check_before();
@@ -231,10 +231,10 @@
 }
 
 
-std::auto_ptr< ai_recruit_result > ai_actions::execute_recruit_action( int 
side,
-       bool execute,
-       const std::string& unit_name,
-       const map_location& where )
+std::auto_ptr< ai_recruit_result > ai_actions::execute_recruit_action( int 
/*side*/,
+       bool execute,
+       const std::string& /*unit_name*/,
+       const map_location& /*where*/)
 {
        std::auto_ptr< ai_recruit_result > ai_action(new ai_recruit_result());
        execute ? ai_action->execute() : ai_action->check_before();
@@ -243,11 +243,11 @@
 }
 
 
-std::auto_ptr< ai_stopunit_result > ai_actions::execute_stopunit_action( int 
side,
-       bool execute,
-       const map_location& unit_location,
-       bool remove_movement,
-       bool remove_attacks )
+std::auto_ptr< ai_stopunit_result > ai_actions::execute_stopunit_action( int 
/*side*/,
+       bool execute,
+       const map_location& /*unit_location*/,
+       bool /*remove_movement*/,
+       bool /*remove_attacks*/)
 {
        std::auto_ptr< ai_stopunit_result > ai_action(new ai_stopunit_result());
        execute ? ai_action->execute() : ai_action->check_before();


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to