Author: brunowolff
Date: Wed Mar 19 18:51:14 2008
New Revision: 24870
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24870&view=rev
Log:
Silence gcc 4.3 warning by add braces to prevent ambiguous else.
Modified:
trunk/src/unit.cpp
Modified: trunk/src/unit.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=24870&r1=24869&r2=24870&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Wed Mar 19 18:51:14 2008
@@ -588,8 +588,9 @@
if(i != gamedata_->unit_types.end()) {
return &i->second;
}
- if (!type_id().empty())
+ if (!type_id().empty()) {
LOG_STREAM(err, engine) << "type not found for nonempty unit "
<< type_id() << ", returning NULL!\n";
+ }
return NULL;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits