Author: anonymissimus
Date: Sun Aug 7 16:50:46 2011
New Revision: 50638
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50638&view=rev
Log:
mute an MSVC warning
Modified:
trunk/src/ai/lua/lua_object.hpp
Modified: trunk/src/ai/lua/lua_object.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/lua/lua_object.hpp?rev=50638&r1=50637&r2=50638&view=diff
==============================================================================
--- trunk/src/ai/lua/lua_object.hpp (original)
+++ trunk/src/ai/lua/lua_object.hpp Sun Aug 7 16:50:46 2011
@@ -93,7 +93,16 @@
template <>
inline boost::shared_ptr<bool> lua_object<bool>::to_type(lua_State *L, int n)
{
+#ifdef _MSC_VER
+#pragma warning (push)
+#pragma warning (disable : 4800)
+#endif
+
return boost::shared_ptr<bool>(new bool(lua_toboolean(L, n)));
+
+#ifdef _MSC_VER
+#pragma warning (pop)
+#endif
}
template <>
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits