wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src playturn.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src playturn.cpp
Date: Sun, 21 Nov 2004 16:06:00 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/11/21 21:00:08

Modified files:
        src            : playturn.cpp 

Log message:
        Removal of MSVC warnings by uglifying the code is just plain evil. 
There is no way I would allow GCC users to suffer from MSVC shortcomings.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playturn.cpp.diff?tr1=1.290&tr2=1.291&r1=text&r2=text

Patches:
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.290 wesnoth/src/playturn.cpp:1.291
--- wesnoth/src/playturn.cpp:1.290      Thu Nov 18 22:00:12 2004
+++ wesnoth/src/playturn.cpp    Sun Nov 21 21:00:08 2004
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.290 2004/11/18 22:00:12 ydirson Exp $ */
+/* $Id: playturn.cpp,v 1.291 2004/11/21 21:00:08 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1147,8 +1147,7 @@
        try {
                config starting_pos;
                
recorder.save_game(gameinfo_,_("Auto-Save"),snapshot,state_of_game_.starting_pos);
-       } catch(gamestatus::save_game_failed& e) {
-               e;
+       } catch(gamestatus::save_game_failed&) {
                gui::show_dialog(gui_,NULL,"",_("Could not auto save the game. 
Please save the game manually."),gui::MESSAGE);
                //do not bother retrying, since the user can just save the game
        }
@@ -1404,8 +1403,7 @@
                        if(dialog_type != gui::NULL_DIALOG) {
                                gui::show_dialog(gui_,NULL,_("Saved"),_("The 
game has been saved"), gui::OK_ONLY);
                        }
-               } catch(gamestatus::save_game_failed& e) {
-                       e;
+               } catch(gamestatus::save_game_failed&) {
                        gui::show_dialog(gui_,NULL,_("Error"),_("The game could 
not be saved"),gui::MESSAGE);
                        //do not bother retrying, since the user can just try 
to save the game again
                };
@@ -2417,8 +2415,7 @@
                        try {
                                turn_end = 
do_replay(gui_,map_,gameinfo_,units_,teams_,
                                team_num_,status_,state_of_game_,&replay_obj);
-                       } catch(replay::error& e) {
-                               e;
+                       } catch(replay::error&) {
                                //notify remote hosts of out of sync error
                                config cfg;
                                config& info = cfg.add_child("info");




reply via email to

[Prev in Thread] Current Thread [Next in Thread]