Author: brunowolff
Date: Wed Mar 19 17:33:32 2008
New Revision: 24843

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24843&view=rev
Log:
Silence gcc 4.3 warning by adding braces to avoid ambiguous else.

Modified:
    trunk/src/ai.cpp

Modified: trunk/src/ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai.cpp?rev=24843&r1=24842&r2=24843&view=diff
==============================================================================
--- trunk/src/ai.cpp (original)
+++ trunk/src/ai.cpp Wed Mar 19 17:33:32 2008
@@ -223,8 +223,9 @@
                return new ai2(info);
     }
 #endif
-       else if(name != "")
+       else if(name != "") {
                LOG_STREAM(err, ai) << "AI not found: '" << name << "'\n";
+       }
 
        return new ai(info);
 }


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

Reply via email to